|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectImageReader
JpegJMagickImageReader
public class JpegJMagickImageReader
JpegJMagickImageReader
is a GDALImageReader
able to create
RenderedImage
from JPEG files.
Nested Class Summary | |
---|---|
static class |
JpegJMagickImageReader.JpegJMagickImageReaderReadParam
Implementation of ImageReadParam for this
JpegJMagickImageReader . |
static class |
JpegJMagickImageReader.MagickImageAdapter
JpegJMagickImageReader.MagickImageAdapter containes code to adapt a MagickImage
to a BufferedImage . |
Field Summary |
---|
Fields inherited from class ImageReader |
---|
availableLocales, ignoreMetadata, input, locale, minIndex, originatingProvider, progressListeners, seekForwardOnly, updateListeners, warningListeners, warningLocales |
Constructor Summary | |
---|---|
JpegJMagickImageReader(JpegJMagickImageReaderSpi originatingProvider)
|
Method Summary | |
---|---|
void |
dispose()
Allows any resources held by this object to be released. |
protected void |
finalize()
|
ImageReadParam |
getDefaultReadParam()
|
int |
getHeight(int imageIndex)
Returns the height in pixels of the given image within the input source. |
IIOMetadata |
getImageMetadata(int imageIndex)
Actually, this method is not supported and it throws an UnsupportedOperationException |
Iterator<ImageTypeSpecifier> |
getImageTypes(int imageIndex)
|
int |
getNumImages(boolean allowSearch)
|
IIOMetadata |
getStreamMetadata()
Actually, this method is not supported and it throws an UnsupportedOperationException |
int |
getWidth(int imageIndex)
Returns the width in pixels of the given image within the input source. |
BufferedImage |
read(int imageIndex,
ImageReadParam param)
Read the imageMagick and returns it as a complete BufferedImage , using a supplied
ImageReadParam . |
void |
setInput(Object input)
Sets the input source to use to the given Object , usually
a File or a FileImageInputStreamExt |
void |
setInput(Object input,
boolean seekForwardOnly)
Sets the input source to use to the given Object , usually
a File or a FileImageInputStreamExt |
void |
setInput(Object input,
boolean seekForwardOnly,
boolean ignoreMetadata)
Sets the input source to use to the given Object , usually
a File or a FileImageInputStreamExt |
Methods inherited from class ImageReader |
---|
abort, abortRequested, addIIOReadProgressListener, addIIOReadUpdateListener, addIIOReadWarningListener, canReadRaster, checkReadParamBandSettings, clearAbortRequest, computeRegions, getAspectRatio, getAvailableLocales, getDestination, getFormatName, getImageMetadata, getInput, getLocale, getMinIndex, getNumThumbnails, getOriginatingProvider, getRawImageType, getSourceRegion, getStreamMetadata, getThumbnailHeight, getThumbnailWidth, getTileGridXOffset, getTileGridYOffset, getTileHeight, getTileWidth, hasThumbnails, isIgnoringMetadata, isImageTiled, isRandomAccessEasy, isSeekForwardOnly, processImageComplete, processImageProgress, processImageStarted, processImageUpdate, processPassComplete, processPassStarted, processReadAborted, processSequenceComplete, processSequenceStarted, processThumbnailComplete, processThumbnailPassComplete, processThumbnailPassStarted, processThumbnailProgress, processThumbnailStarted, processThumbnailUpdate, processWarningOccurred, processWarningOccurred, read, readAll, readAll, readAsRenderedImage, readerSupportsThumbnails, readRaster, readThumbnail, readTile, readTileRaster, removeAllIIOReadProgressListeners, removeAllIIOReadUpdateListeners, removeAllIIOReadWarningListeners, removeIIOReadProgressListener, removeIIOReadUpdateListener, removeIIOReadWarningListener, reset, setLocale |
Methods inherited from class Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JpegJMagickImageReader(JpegJMagickImageReaderSpi originatingProvider)
Method Detail |
---|
protected void finalize() throws Throwable
finalize
in class Object
Throwable
public ImageReadParam getDefaultReadParam()
getDefaultReadParam
in class ImageReader
public int getHeight(int imageIndex) throws IOException
getHeight
in class ImageReader
imageIndex
- the index of the image to be queried.
IOException
public int getWidth(int imageIndex) throws IOException
getWidth
in class ImageReader
imageIndex
- the index of the image to be queried.
IOException
public Iterator<ImageTypeSpecifier> getImageTypes(int imageIndex) throws IOException
getImageTypes
in class ImageReader
IOException
public int getNumImages(boolean allowSearch) throws IOException
getNumImages
in class ImageReader
IOException
public IIOMetadata getImageMetadata(int imageIndex) throws IOException
UnsupportedOperationException
getImageMetadata
in class ImageReader
IOException
public IIOMetadata getStreamMetadata() throws IOException
UnsupportedOperationException
getStreamMetadata
in class ImageReader
IOException
public BufferedImage read(int imageIndex, ImageReadParam param) throws IOException
BufferedImage
, using a supplied
ImageReadParam
.
read
in class ImageReader
imageIndex
- the index of the image to be retrieved.param
- an ImageReadParam
used to control the reading
process, or null.
IOException
public void setInput(Object input, boolean seekForwardOnly, boolean ignoreMetadata)
Object
, usually
a File
or a FileImageInputStreamExt
setInput
in class ImageReader
public void setInput(Object input, boolean seekForwardOnly)
Object
, usually
a File
or a FileImageInputStreamExt
setInput
in class ImageReader
public void setInput(Object input)
Object
, usually
a File
or a FileImageInputStreamExt
setInput
in class ImageReader
public void dispose()
dispose
in class ImageReader
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |