Package com.reportmill.graphics
Class RMJAIImageReader
- java.lang.Object
- 
- com.reportmill.graphics.RMJAIImageReader
 
- 
- All Implemented Interfaces:
- RMImageData.ImageReader
 
 public class RMJAIImageReader extends java.lang.Object implements RMImageData.ImageReader 
- 
- 
Constructor SummaryConstructors Constructor Description RMJAIImageReader(RMImageData anImageData)Creates a new image reader for given image data.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleancanRead(byte[] bytes)Returns whether JAI image reader can read the file provided in the byte array.static booleancanRead(java.lang.String anExt)Returns whether JAI image reader can read files with given extension.java.awt.ImagegetImage()static java.lang.StringgetType(byte[] bytes)Returns the type of the image bytes provided.static java.awt.image.BufferedImagenewBufferedImage(int width, int height, boolean hasAlpha)voidreadBasicInfo()Reads basic image info.voidreadBasicInfoJPG()Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).voidreadBytesDecoded()Loads and sets the decoded bytes for the image data.
 
- 
- 
- 
Constructor Detail- 
RMJAIImageReaderpublic RMJAIImageReader(RMImageData anImageData) Creates a new image reader for given image data.
 
- 
 - 
Method Detail- 
canReadpublic static boolean canRead(java.lang.String anExt) Returns 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.
 - 
getTypepublic static java.lang.String getType(byte[] bytes) Returns 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
 
 - 
getImagepublic java.awt.Image getImage() 
 - 
newBufferedImagepublic static java.awt.image.BufferedImage newBufferedImage(int width, int height, boolean hasAlpha)
 
- 
 
-