Hi Robbie,
I would have thought you could set up an IndexColorModel which maps your
pixels values to RGB values corresponding to the 216 colour browser
palette.
All you need to work out is which RGB palette entry to use for which
pixel value.
Hope this helps
mick:)
Robert Baldock wrote:
> Is there any way to control the palette used by a BufferedImage?
>
> I want to produce web-safe graphics but can't see a way to
> guarantee the palette is going to be made up of the 216 safe
> colours.
>
> I was hoping IndexColorModel would be of some help but I can't
> see a way to do it...
>
> Robbie
>
> --------------------------------------------------------
> Robert Baldock
> [EMAIL PROTECTED]
> http://www.rcb.easynet.co.uk/
> --------------------------------------------------------
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 2D Home Page: http://java.sun.com/products/java-media/2D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/