public class HDXDecoder
extends com.sun.media.jai.codec.ImageDecoderImpl
Constructor and Description |
---|
HDXDecoder(com.sun.media.jai.codec.SeekableStream input,
com.sun.media.jai.codec.ImageDecodeParam param)
Constructor
|
Modifier and Type | Method and Description |
---|---|
RenderedImage |
decodeAsRenderedImage()
Return the current RenderedImage that has been extracted from
the SeekableStream,
|
RenderedImage |
decodeAsRenderedImage(int page)
Returns a RenderedImage that contains the decoded contents of
the SeekableStream associated with this ImageDecoder.
|
int |
getNumPages()
Returns the number of pages (NDXs) present in the current stream.
|
public HDXDecoder(com.sun.media.jai.codec.SeekableStream input, com.sun.media.jai.codec.ImageDecodeParam param) throws IOException
IOException
public RenderedImage decodeAsRenderedImage() throws IOException
decodeAsRenderedImage
in interface com.sun.media.jai.codec.ImageDecoder
decodeAsRenderedImage
in class com.sun.media.jai.codec.ImageDecoderImpl
IOException
public RenderedImage decodeAsRenderedImage(int page) throws IOException
decodeAsRenderedImage
in interface com.sun.media.jai.codec.ImageDecoder
decodeAsRenderedImage
in class com.sun.media.jai.codec.ImageDecoderImpl
IOException
public int getNumPages() throws IOException
Note: The HDX codec defines properties, such as "#num_pages", "#hdx_image", and "#preview_image" that give direct access to the NDXs, so that you can tell ahead of time if an HDX structure contains an image.
getNumPages
in interface com.sun.media.jai.codec.ImageDecoder
getNumPages
in class com.sun.media.jai.codec.ImageDecoderImpl
IOException
Copyright © 2023 Central Laboratory of the Research Councils. All Rights Reserved.