I am working on a small application which displays JPG and PNG files on screen. 
I have a PNG file of 4 bit color depth. It doesn't show exact quality in Java 
as shown in other pic viewer on Windows XP. However, the Java app did display 
other JPG file of 24bit color depth correctly.

The following is some relative code:
...
bimg = new BufferedImage(w,h, BufferedImage.TYPE_BYTE_GRAY);
Graphics gbimg = bimg.getGraphics();
gbimg.drawImage(zeImage, 0, 0, null);
...

Except "TYPE_BYTE_GRAY", I have tried all other field properties. The problem 
remains.
[Message sent by forum member 'ericshliao' (ericshliao)]

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

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