Package com.appliedrec.verid.core2
Class Image
- java.lang.Object
-
- com.appliedrec.verid.core2.Image
-
- All Implemented Interfaces:
IImageProvider
public class Image extends java.lang.Object implements IImageProvider
Image abstraction- Since:
- 2.6.0
-
-
Constructor Summary
Constructors Constructor Description Image(byte[] data, int width, int height, int orientation, int bytesPerRow, ImageFormat format)
Image(byte[] data, int width, int height, int orientation, int bytesPerRow, ImageFormat format, androidx.core.util.Supplier<android.graphics.Bitmap> bitmapSupplier)
Image(android.graphics.Bitmap bitmap)
Image(android.graphics.Bitmap bitmap, int orientation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getBytesPerRow()
byte[]
getData()
ImageFormat
getFormat()
int
getHeight()
int
getOrientation()
Size
getSize()
int
getUprightHeight()
int
getUprightWidth()
int
getWidth()
boolean
isMirrored()
android.graphics.Bitmap
provideBitmap()
Image
provideVerIDImage()
void
setBitmap(android.graphics.Bitmap bitmap)
void
setIsMirrored(boolean mirrored)
-
-
-
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)
-
provideVerIDImage
public Image provideVerIDImage() throws VerIDCoreException
- Specified by:
provideVerIDImage
in interfaceIImageProvider
- Throws:
VerIDCoreException
-
provideBitmap
public android.graphics.Bitmap provideBitmap() throws VerIDCoreException
- Specified by:
provideBitmap
in interfaceIImageProvider
- Throws:
VerIDCoreException
-
-