Re: Buffered Image color help
- From: Roedy Green <see_website@xxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Nov 2007 01:06:28 GMT
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
.
- References:
- Buffered Image color help
- From: paulklemstine
- Buffered Image color help
- Prev by Date: Re: Buffered Image color help
- Next by Date: Re: Graphics and JVMs
- Previous by thread: Re: Buffered Image color help
- Index(es):