Forums Register Login

how to convert hexadecimal value in int value

+Pie Number of slices to send: Send
i want to make color through hexadecimal value....can anybody help me...means i want color through hexadecimal value which is passed in applet code.....
+Pie Number of slices to send: Send
Hi Aayush,
Just use the Color( int rgb ) constructor.
0x 0000 0000 00RR GGBB
where R = red, G = green, and B = blue.
Examples:
Hex Number Decimal Value
0x0000000000FFFFFF 16777215
0x0000000000888888 8947848
0x0000000000000000 0
Regards,
Manfred.
What could go wrong in a swell place like "The Evil Eye"? Or with this tiny ad?
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 883 times.
Similar Threads
Color setting
Operators
Hexadecimal value for new Color()
Language doubt
convert Hex to Char or Dec
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 09:35:26.