What do you mean "use it as an int". If you want the 0-255 individual values for the red, green, and blue, then maybe you should be using the getRed(), etc methods, rather than the getRGB method.
P.S. The API docs can be really helpful. Use them.
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494
Then why do you need an int? Why not just
if (Color.WHITE.equals(c)) ...
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494