Hi,
I have the similar problem with "custom-made" BufferedImage. Im'using a Raster
with a MultiPixelPackedSampleModel and an IndexedColorModel to load a sun raster
image file coded on 8 bits. When I want to scale it, I have these problems:
1-with AffineTransfromOp.filter, a java.awt.image.ImagingOpException : Unable to
transform src image is throwed.
2- with Graphics2D.drawImage, the scaled image is corrupted (it is duplicated by
8 on the width).

But it works fine with the 24 bits sun raster file .

So I try to convert the indexed BufferedImage to a DirectColorModel but I have
the same exception with ColorConvertOp.

Denis

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/

Reply via email to