Hi Jim, I also have a question related to the coerceData() method. It may be out of place here, just let me know. I've tried other forums (see below) with limited success.
It has to do with writing a BufferedImage out as a TIFF format file (using the class com.sun.media.jai.codec.TIFFEncodeParam). In the JAI forum I was advised to use the "coerceData(true)" in order to guarantee that the alpha channel of the image would be written out as "assoc alpha" rather than "unassoc alpha" -- in the latter case most image packages won't recognize it as the transparency channel, hence making the TIFF file not very useful. But I've noticed that "coerceData(true)" seems to have the sort of unintended consequences referred to in your post, making the saved files also useless. So, my question: is there another known way to make sure the TIFF file gets written out with the "assoc alpha" flag turned out, short of calling "coerceData(true)"? Simply allocating an image of type TYPE_INT_ARGB_PRE doesn't seem to do so. It appears that I can save the images as PNG files and get the alpha channel saved as transparency information, so I can live without this, but the TIFF format has certain advantages that I'm reluctant to forgo. (This topic may be too far afield from this discussion, please let me know.) Charles [Message sent by forum member 'charlesgunn' (charlesgunn)] http://forums.java.net/jive/thread.jspa?messageID=296668 =========================================================================== 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".