Hi Dan,
Can you send me the println from your bufImage? i.e.:
System.out.println(bufImage);
Also, please send me the code that is zooming the image. Are you using
Graphics2D.transform, or are you calling AffineTransformOp? Are you
specifying a destination image?
Thanks
jeannette
> Date: Sat, 13 Nov 1999 12:33:48 -0800
> From: Dan Blanks <[EMAIL PROTECTED]>
> Subject: [JAVA2D] Problem zooming TIFF images
> To: [EMAIL PROTECTED]
>
> 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".
===========================================================================
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".