---------- Forwarded message ---------- Date: Thu, 20 Feb 2003 23:45:44 -0800 From: Eric Kolotyluk <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: [JAI] Managing Colour Accuracy
Can anyone recommend any good references on managing colour accuracy? While experimenting with printing I noticed that while printing on the same printer and image, my printouts were differing from Adobe PrintShop. In order to scale a large image to a small printer I create a new printerImage, then draw the largeImage into it scaled to the right size. The first time I created the printerImage of TYPE_INT_BGR, but when printed it was way too light, and dithered. after reading http://www.color.com I figured I should try sRGB, so I tried TYPE_3BYTE_BGR hoping this was sRGB. This was better, darker and halftone, but still not as dark as the print-out by Adobe, and not nearly as dark as the screen rendering. Also, there are other ineffable quality problems. When I don't use this technique of drawing to an intermediate BufferedImage, my printouts look the same as those from Adobe PrintShop. Is there some special trick to faithfully drawing an image from one buffer to another while scaling it? Can ICC profiles be used to manage colours in Java? If so, how do I lean about this? I have Rodrigues' book, but it doesn't seem to be much help in this area. Cheers, Eric BufferedImage largeImage; /* width = 4865 height = 5972 metadata formats = javax_imageio_png_1.0 javax_imageio_1.0 image type = TYPE_CUSTOM ColorModel: #pixelBits = 24 numComponents = 3 color space = [EMAIL PROTECTED] transparency = 1 has alpha = false isAlphaPre = false */ BufferedImage printerImage = new BufferedImage( newWidth, newHeight, BufferedImage.TYPE_3BYTE_BGR); AffineTransform transform = new AffineTransform(); transform = scale(scale, scale); Graphics2D g = printerImage.createGraphics(); g.drawImage(largeImage, transform, null); // pass this to the print() method =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff JAI-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help". =========================================================================== 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".
