Class Image

  • All Implemented Interfaces:
    IImageProvider

    public class Image
    extends java.lang.Object
    implements IImageProvider
    Image abstraction
    Since:
    2.6.0
    • Constructor Detail

      • Image

        public Image​(byte[] data,
                     int width,
                     int height,
                     int orientation,
                     int bytesPerRow,
                     ImageFormat format)
      • Image

        public Image​(byte[] data,
                     int width,
                     int height,
                     int orientation,
                     int bytesPerRow,
                     ImageFormat format,
                     androidx.core.util.Supplier<android.graphics.Bitmap> bitmapSupplier)
      • Image

        public Image​(android.graphics.Bitmap bitmap,
                     int orientation)
      • Image

        public Image​(android.graphics.Bitmap bitmap)
    • Method Detail

      • getData

        public byte[] getData()
        Returns:
        Byte array with image data
        Since:
        2.6.0
      • getWidth

        public int getWidth()
        Returns:
        Width of the image in pixels
        Since:
        2.6.0
      • getHeight

        public int getHeight()
        Returns:
        Height of the image in pixels
        Since:
        2.6.0
      • getUprightWidth

        public int getUprightWidth()
      • getUprightHeight

        public int getUprightHeight()
      • getSize

        public Size getSize()
      • getOrientation

        public int getOrientation()
        Returns:
        Orientation of the image as expressed in an EXIF tag
        Since:
        2.6.0
      • getBytesPerRow

        public int getBytesPerRow()
        Returns:
        Bytes per row of pixels, usually the same as width
        Since:
        2.6.0
      • getFormat

        public ImageFormat getFormat()
        Returns:
        Format of the image
        Since:
        2.6.0
      • isMirrored

        public boolean isMirrored()
      • setIsMirrored

        public void setIsMirrored​(boolean mirrored)
      • setBitmap

        public void setBitmap​(android.graphics.Bitmap bitmap)