An image of TYPE_INT_ARGB uses a PackedColorModel with a Packed
Raster with a TYPE_INT DataBuffer.  It is incompatible with the
Byte-based ComponentColorModel (and SampleModel) that you are
creating.  I'm not sure how these two pieces of data would
interact in this case...

...jim

--On 03/15/04 22:40:12 +0100 Jürg Lehni wrote:
if (bi.getType() == BufferedImage.TYPE_INT_ARGB) {
        // create a new ColorModel with OPAQUE transparency and no
alpha channel.
        ColorModel cm = new
ComponentColorModel(bi.getColorModel().getColorSpace(), false, false,
Transparency.OPAQUE, DataBuffer.TYPE_BYTE);

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