Re: Buffered Image color help



On Sat, 10 Nov 2007 12:42:38 -0800, paulklemstine@xxxxxxxxx wrote,
quoted or indirectly quoted someone who said :

I have a bufferedImage of the type BYTE_INDEXED. What are the byte
values for the color red? How does a byte code for RGB values?

It is defined in your IndexColorModel. You make it up. You create a
map from each int to a full Color.

see http://mindprod.com/jgloss/indexcolormodel.html
for sample code.
--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.