I'm having a problem zooming into TIFF images.  I am inputting a multi-image
color TIFF file, then zooming using the AffineTransform.  I get an
ImagingOpException whenever I try to zoom the image to a larger size.
Apparently this problem has been seen by others in this group, but I
can't quite ferret out how to solve the problem for my case.  I know it
has something to do with the ColorModel since 8-bit grayscale images
do fine while 24-bit color images throw the exception.  Is there any
sensible way to change the color model to get around this problem?

My code snippets are below.  Any help would be greatly appreciated!

// Input of image where File imageFile is pointing to the file of interest
public BufferedImage open(File imageFile, int page)  throws IOException
{
SeekableStream s = new FileSeekableStream(imageFile);
ImageDecoder dec = ImageCodec.createImageDecoder("tiff", s, null);
PlanarImage image = new NullOpImage(dec.decodeAsRenderedImage(page),null, 
OpImage.OP_IO_BOUND, null);
BufferedImage bufImage = image.getAsBufferedImage();
}

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