Hi,

Can any Java2D expert confirm that the following API behaviour is normal...

When using Graphics.drawImage() to copy a TYPE_ARGB BufferedImage into a
TYPE_BYTE_INDEXED BufferedImage (constructed with a 256-entry
IndexedColorModel), we get dithering in areas of solid color even if that
color is specified by the color lookup table (CLUT).

We would expect that any source ARGB pixels that have values identical to
any specified in the CLUT would be copied "perfectly" by simple
transformation to the CLUT index value.

If the above is the normal behavior, is there any way we can change what the
API does so that there is no dithering in the destination image for areas of
color when the color is specified in the CLUT?

  Laurence Vanhelsuwe - Telework Software - Solving IT in Java

PS. Our application is a GIS so the images contain map data, and all of the
above is simply part of our attempts to reduce RAM consumption by squeezing
a 32-bpp image into 8-bpp.

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to