Class RMImageReader
java.lang.Object
com.inductiveautomation.rm.graphics.RMImageReader
- All Implemented Interfaces:
- RMImageData.ImageReader
Uses ImageIO or JAI to read an image, its basic info and its decoded bytes. The reader tries to provide basic info
 without loading the entire image file into memory. Decoded bytes are only needed by things like PDF and Flash
 writers.
- 
Constructor SummaryConstructorsConstructorDescriptionRMImageReader(RMImageData anImageData) Creates a new image reader for given image data.
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleancanRead(byte[] bytes) Returns whether image reader can read the file provided in the byte array.static booleanReturns whether image reader can read files with given extension.Returns the image data.static StringgetType(byte[] bytes) Returns the type of the image bytes provided.voidreadBasicInfo(RMImageData anImageData) Reads 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.readImage(RMImageData anImageData) Reads the buffered image.
- 
Constructor Details- 
RMImageReaderCreates a new image reader for given image data.
 
- 
- 
Method Details- 
canReadReturns whether image reader can read files with given extension.
- 
canReadpublic static boolean canRead(byte[] bytes) Returns whether image reader can read the file provided in the byte array.
- 
getTypeReturns the type of the image bytes provided.
- 
getImageDataReturns the image data.
- 
readBasicInfoReads 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).
- 
readImageReads the buffered image.- Specified by:
- readImagein interface- RMImageData.ImageReader
 
- 
readBytesDecodedpublic void readBytesDecoded()Loads and sets the decoded bytes for the image data.- Specified by:
- readBytesDecodedin interface- RMImageData.ImageReader
 
 
-