convert int to Color
hi...does anyone know how to convert int value (grabbed from getRGB()) into the actual color format?
hi...does anyone know how to convert int value (grabbed from getRGB()) into the actual color format?
hi
use this
Color(int rgb)
Creates an opaque sRGB color with the specified combined RGB value consisting of the red component in bits 16-23, the green component in bits 8-15, and the blue component in bits 0-7.
just for
int getRGB()
Returns the RGB value representing the color in the default sRGB
regards
Aniruddha
ahh...thanks a lot.. that's really helpful..