WBMPImageReadParam.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | gotHeader
Indicates whether the header is read. |
| private int | height
The original image height. |
| private ImageInputStream | iis
The input stream where reads from |
| private WBMPMetadata | |
| private int | |
| private int | width
The original image width. |
| Access | Constructor and Description |
|---|---|
| public | WBMPImageReader(ImageReaderSpi originator)
Constructs |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | canReadRaster()
Overrides javax. Returns |
| private void | |
| public ImageReadParam | getDefaultReadParam()
Overrides javax. Returns a default |
| public int | getHeight(int imageIndex)
Implements abstract javax. Returns the height in pixels of the given image within the input source. |
| public IIOMetadata | getImageMetadata(int imageIndex)
Implements abstract javax. Returns an |
| public Iterator | getImageTypes(int imageIndex)
Implements abstract javax. Returns an |
| public int | getNumImages(boolean allowSearch)
Implements abstract javax. Returns the number of images, not including thumbnails, available from the current input source. |
| public IIOMetadata | getStreamMetadata()
Implements abstract javax. Returns an |
| public int | getWidth(int imageIndex)
Implements abstract javax. Returns the width in pixels of the given image within the input source. |
| public boolean | isRandomAccessEasy(int imageIndex)
Overrides javax. Returns |
| pack-priv boolean | |
| public BufferedImage | read(int imageIndex, ImageReadParam param)
Implements abstract javax. Reads the image indexed by |
| public void | |
| public Raster | readRaster(int imageIndex, ImageReadParam param)
Overrides javax. Returns a new |
| public void | |
| public void | setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
Overrides javax. Sets the input source to use to the given
|
| gotHeader | back to summary |
|---|---|
| private boolean gotHeader Indicates whether the header is read. | |
| height | back to summary |
|---|---|
| private int height The original image height. | |
| iis | back to summary |
|---|---|
| private ImageInputStream iis The input stream where reads from | |
| metadata | back to summary |
|---|---|
| private WBMPMetadata metadata | |
| wbmpType | back to summary |
|---|---|
| private int wbmpType | |
| width | back to summary |
|---|---|
| private int width The original image width. | |
| WBMPImageReader | back to summary |
|---|---|
| public WBMPImageReader(ImageReaderSpi originator) Constructs | |
| canReadRaster | back to summary |
|---|---|
| public boolean canReadRaster() Overrides javax. Doc from javax. Returns The default implementation returns
| |
| checkIndex | back to summary |
|---|---|
| private void checkIndex(int imageIndex) | |
| getDefaultReadParam | back to summary |
|---|---|
| public ImageReadParam getDefaultReadParam() Overrides javax. Doc from javax. Returns a default The default implementation constructs and returns a new
| |
| getHeight | back to summary |
|---|---|
| public int getHeight(int imageIndex) throws IOException Implements abstract javax. Doc from javax. Returns the height in pixels of the given image within the input source. If the image can be rendered to a user-specified size, then this method returns the default height.
| |
| getImageMetadata | back to summary |
|---|---|
| public IIOMetadata getImageMetadata(int imageIndex) throws IOException Implements abstract javax. Doc from javax. Returns an
| |
| getImageTypes | back to summary |
|---|---|
| public Iterator Implements abstract javax. Doc from javax. Returns an The first element of the iterator should be the most "natural" type for decoding the image with as little loss as possible. For example, for a JPEG image the first entry should be an RGB image, even though the image data is stored internally in a YCbCr color space.
| |
| getNumImages | back to summary |
|---|---|
| public int getNumImages(boolean allowSearch) throws IOException Implements abstract javax. Doc from javax. Returns the number of images, not including thumbnails, available from the current input source. Note that some image formats (such as animated GIF) do not
specify how many images are present in the stream. Thus
determining the number of images will require the entire stream
to be scanned and may require memory for buffering. If images
are to be processed in order, it may be more efficient to
simply call
| |
| getStreamMetadata | back to summary |
|---|---|
| public IIOMetadata getStreamMetadata() throws IOException Implements abstract javax. Doc from javax. Returns an
| |
| getWidth | back to summary |
|---|---|
| public int getWidth(int imageIndex) throws IOException Implements abstract javax. Doc from javax. Returns the width in pixels of the given image within the input source. If the image can be rendered to a user-specified size, then this method returns the default width.
| |
| isRandomAccessEasy | back to summary |
|---|---|
| public boolean isRandomAccessEasy(int imageIndex) throws IOException Overrides javax. Doc from javax. Returns This is merely a hint for programs that wish to be
efficient; all readers must be able to read arbitrary regions
as specified in an Note that formats that return A reader for which all images are guaranteed to support
easy random access, or are guaranteed not to support easy
random access, may return The default implementation returns
| |
| isValidWbmpType | back to summary |
|---|---|
| pack-priv boolean isValidWbmpType(int type) | |
| read | back to summary |
|---|---|
| public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException Implements abstract javax. Doc from javax. Reads the image indexed by The actual Any registered The set of source bands to be read and destination bands to
be written is determined by calling If the supplied
| |
| readHeader | back to summary |
|---|---|
| public void readHeader() throws IOException | |
| readRaster | back to summary |
|---|---|
| public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException Overrides javax. Doc from javax. Returns a new This method allows formats that normally apply a color conversion, such as JPEG, and formats that do not normally have an associated colorspace, such as remote sensing or medical imaging data, to provide access to raw pixel data. Any registered If If the supplied The default implementation throws an
| |
| reset | back to summary |
|---|---|
| public void reset() Overrides javax. Doc from javax. Restores the The default implementation calls
| |
| setInput | back to summary |
|---|---|
| public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata) Overrides javax. Doc from javax. Sets the input source to use to the given
The The Subclasses should take care to remove any cached information based on the previous stream, such as header information or partially decoded image data. Use of a general The default implementation checks the
| |