Class RMJAIImageReader

    • Constructor Summary

      Constructors 
      Constructor Description
      RMJAIImageReader​(RMImageData anImageData)
      Creates a new image reader for given image data.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean canRead​(byte[] bytes)
      Returns whether JAI image reader can read the file provided in the byte array.
      static boolean canRead​(java.lang.String anExt)
      Returns whether JAI image reader can read files with given extension.
      java.awt.Image getImage()  
      static java.lang.String getType​(byte[] bytes)
      Returns the type of the image bytes provided.
      static java.awt.image.BufferedImage newBufferedImage​(int width, int height, boolean hasAlpha)  
      void readBasicInfo()
      Reads basic image info.
      void readBasicInfoJPG()
      Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).
      void readBytesDecoded()
      Loads and sets the decoded bytes for the image data.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RMJAIImageReader

        public RMJAIImageReader​(RMImageData anImageData)
        Creates a new image reader for given image data.
    • Method Detail

      • canRead

        public static boolean canRead​(java.lang.String anExt)
        Returns whether JAI image reader can read files with given extension.
      • canRead

        public static boolean canRead​(byte[] bytes)
        Returns whether JAI image reader can read the file provided in the byte array.
      • getType

        public static java.lang.String getType​(byte[] bytes)
        Returns the type of the image bytes provided.
      • readBasicInfoJPG

        public void readBasicInfoJPG()
        Reads basic image info specifically optimized for JPEG images (without having to create Java RenderedImage).
      • getImage

        public java.awt.Image getImage()
      • newBufferedImage

        public static java.awt.image.BufferedImage newBufferedImage​(int width,
                                                                    int height,
                                                                    boolean hasAlpha)