Re: ByteArraySeekableStream ignores offset
From: ak (spam_at_imagero.com)
Date: 02/06/04
- Next message: Andrew Thompson: "Re: ByteArraySeekableStream ignores offset"
- Previous message: Alex Molochnikov: "Re: ByteArraySeekableStream ignores offset"
- In reply to: Alex Molochnikov: "ByteArraySeekableStream ignores offset"
- Next in thread: Andrew Thompson: "Re: ByteArraySeekableStream ignores offset"
- Reply: Andrew Thompson: "Re: ByteArraySeekableStream ignores offset"
- Reply: Alexandr Molochnikov: "Re: ByteArraySeekableStream ignores offset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 6 Feb 2004 19:19:45 +0100
> ByteArraySeekableStream stream = new ByteArraySeekableStream(data, 78,
> data.length - 78);
> PlanarImage source = JAI.create("stream", stream);
> WritableRaster raster = source.copyData(); <== exception thrown here
> ColorModel cm = source.getColorModel();
> BufferedImage image = new BufferedImage(cm, raster, false, (Hashtable)
> null);
what I can't understand is why you first create PlanarImage and after
convert it to BufferedImage.
Use ImageIO and read direct as BufferedImage.
____________
http://reader.imagero.com the best java image reader.
- Next message: Andrew Thompson: "Re: ByteArraySeekableStream ignores offset"
- Previous message: Alex Molochnikov: "Re: ByteArraySeekableStream ignores offset"
- In reply to: Alex Molochnikov: "ByteArraySeekableStream ignores offset"
- Next in thread: Andrew Thompson: "Re: ByteArraySeekableStream ignores offset"
- Reply: Andrew Thompson: "Re: ByteArraySeekableStream ignores offset"
- Reply: Alexandr Molochnikov: "Re: ByteArraySeekableStream ignores offset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|