public class RawImageReader extends ImageReader
PNMImageReadParam
.availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales
Constructor and Description |
---|
RawImageReader(ImageReaderSpi originator)
Constructs
RawImageReader from the provided
ImageReaderSpi . |
Modifier and Type | Method and Description |
---|---|
boolean |
canReadRaster() |
static void |
computeRegionsWrapper(ImageReadParam param,
int srcWidth,
int srcHeight,
BufferedImage image,
Rectangle srcRegion,
Rectangle destRegion)
Wrapper for the protected method
computeRegions . |
boolean |
getAbortRequest()
This method wraps the protected method
abortRequested
to allow the abortions be monitored by J2KReadState . |
ImageReadParam |
getDefaultReadParam() |
int |
getHeight(int imageIndex) |
IIOMetadata |
getImageMetadata(int imageIndex) |
Iterator |
getImageTypes(int imageIndex) |
int |
getNumImages(boolean allowSearch)
Overrides the method defined in the superclass.
|
IIOMetadata |
getStreamMetadata() |
int |
getTileHeight(int imageIndex) |
int |
getTileWidth(int imageIndex) |
int |
getWidth(int imageIndex) |
boolean |
isRandomAccessEasy(int imageIndex) |
void |
processImageProgressWrapper(float percentageDone)
Wrapper for the protected method
processImageProgress
So it can be access from the classes which are not in
ImageReader hierachy. |
void |
processImageUpdateWrapper(BufferedImage theImage,
int minX,
int minY,
int width,
int height,
int periodX,
int periodY,
int[] bands)
Wrapper for the protected method
processImageUpdate
So it can be access from the classes which are not in
ImageReader hierachy. |
BufferedImage |
read(int imageIndex,
ImageReadParam param) |
RenderedImage |
readAsRenderedImage(int imageIndex,
ImageReadParam param) |
Raster |
readRaster(int imageIndex,
ImageReadParam param) |
void |
reset() |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Overrides the method defined in the superclass.
|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, checkReadParamBandSettings, clearAbortRequest, computeRegions, dispose, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, hasThumbnails, isIgnoringMetadata, isImageTiled, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readerSupportsThumbnails, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, setInput, setInput, setLocale
public RawImageReader(ImageReaderSpi originator)
RawImageReader
from the provided
ImageReaderSpi
.public static void computeRegionsWrapper(ImageReadParam param, int srcWidth, int srcHeight, BufferedImage image, Rectangle srcRegion, Rectangle destRegion)
computeRegions
. So it
can be access from the classes which are not in ImageReader
hierachy.public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
setInput
in class ImageReader
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
IOException
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
IOException
public int getTileWidth(int imageIndex) throws IOException
getTileWidth
in class ImageReader
IOException
public int getTileHeight(int imageIndex) throws IOException
getTileHeight
in class ImageReader
IOException
public Iterator getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public ImageReadParam getDefaultReadParam()
getDefaultReadParam
in class ImageReader
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
getImageMetadata
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
getStreamMetadata
in class ImageReader
IOException
public boolean isRandomAccessEasy(int imageIndex) throws IOException
isRandomAccessEasy
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
read
in class ImageReader
IOException
public RenderedImage readAsRenderedImage(int imageIndex, ImageReadParam param) throws IOException
readAsRenderedImage
in class ImageReader
IOException
public Raster readRaster(int imageIndex, ImageReadParam param) throws IOException
readRaster
in class ImageReader
IOException
public boolean canReadRaster()
canReadRaster
in class ImageReader
public void reset()
reset
in class ImageReader
public void processImageUpdateWrapper(BufferedImage theImage, int minX, int minY, int width, int height, int periodX, int periodY, int[] bands)
processImageUpdate
So it can be access from the classes which are not in
ImageReader
hierachy.public void processImageProgressWrapper(float percentageDone)
processImageProgress
So it can be access from the classes which are not in
ImageReader
hierachy.public boolean getAbortRequest()
abortRequested
to allow the abortions be monitored by J2KReadState
.Copyright © 2015–2022 SCIFIO. All rights reserved.