Using the code pasted below, I draw a directcolormodel image on a 
indexcolormodel image, with a ready-calculated indexcolormodel provided.

But the images have problems and the quality is not good because solid filled 
areas are dithered into half tones when half tones are available in the palette 
in the indexcolormodel provided. I try to stop java from changing the colors of 
the pixels in my image by setting the dither disble rendering hint but this has 
no effect.

Is this a bug or do I have to take and special steps to make the rendring hint 
count ?

BufferedImage newImage = new 
BufferedImage(image.getWidth(),image.getHeight(),BufferedImage.TYPE_BYTE_INDEXED,(IndexColorModel)cm);
  
gfx.setRenderingHint(RenderingHints.KEY_DITHERING,RenderingHints.VALUE_DITHER_DISABLE);
            gfx.drawImage(image,0,0,null);
gfx.dispose();
[Message sent by forum member 'aryland' (aryland)]

http://forums.java.net/jive/thread.jspa?messageID=124671

===========================================================================
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