convert int to Color

hi...does anyone know how to convert int value (grabbed from getRGB()) into the actual color format?

[107 byte] By [don.juan9a] at [2007-11-27 11:11:21]
# 1

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

Aniruddha-Herea at 2007-7-29 13:47:39 > top of Java-index,Security,Cryptography...
# 2

ahh...thanks a lot.. that's really helpful..

don.juan9a at 2007-7-29 13:47:39 > top of Java-index,Security,Cryptography...