Package com.reportmill.graphics
Class RMJAIImageReader
java.lang.Object
com.reportmill.graphics.RMJAIImageReader
- All Implemented Interfaces:
- RMImageData.ImageReader
- 
Constructor SummaryConstructorsConstructorDescriptionRMJAIImageReader(RMImageData anImageData) Creates a new image reader for given image data.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleancanRead(byte[] bytes) Returns whether JAI image reader can read the file provided in the byte array.static booleanReturns whether JAI image reader can read files with given extension.getImage()static StringgetType(byte[] bytes) Returns the type of the image bytes provided.static BufferedImagenewBufferedImage(int width, int height, boolean hasAlpha) voidReads basic image info.voidReads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).voidLoads and sets the decoded bytes for the image data.
- 
Constructor Details- 
RMJAIImageReaderCreates a new image reader for given image data.
 
- 
- 
Method Details- 
canReadReturns whether JAI image reader can read files with given extension.
- 
canReadpublic static boolean canRead(byte[] bytes) Returns whether JAI image reader can read the file provided in the byte array.
- 
getTypeReturns the type of the image bytes provided.
- 
readBasicInfopublic void readBasicInfo()Reads basic image info.- Specified by:
- readBasicInfoin interface- RMImageData.ImageReader
 
- 
readBasicInfoJPGpublic void readBasicInfoJPG()Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).
- 
readBytesDecodedpublic void readBytesDecoded()Loads and sets the decoded bytes for the image data.- Specified by:
- readBytesDecodedin interface- RMImageData.ImageReader
 
- 
getImage
- 
newBufferedImage
 
-