Package org.jmrtd.lds
Interface ImageInfo
-
- All Superinterfaces:
LDSElement
,Serializable
- All Known Implementing Classes:
AbstractImageInfo
,DisplayedImageInfo
,FaceImageInfo
,FingerImageInfo
,IrisImageInfo
public interface ImageInfo extends LDSElement
Common interface type for records containing an encoded image.- Version:
- $Revision: 1767 $
- Author:
- The JMRTD team ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description static String
JPEG_MIME_TYPE
Mime-type.static String
JPEG2000_MIME_TYPE
Mime-type.static int
TYPE_FINGER
Type of image.static int
TYPE_IRIS
Type of image.static int
TYPE_PORTRAIT
Type of image.static int
TYPE_SIGNATURE_OR_MARK
Type of image.static int
TYPE_UNKNOWN
Type of image.static String
WSQ_MIME_TYPE
Mime-type.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getHeight()
Gets the height of the image in pixels.InputStream
getImageInputStream()
Gets an input stream from which the image bytes can be read.int
getImageLength()
Gets the length of the encoded image in bytes.String
getMimeType()
Gets the mime-type of the encoded image as aString
.long
getRecordLength()
Gets the length of the total record (header and data) in bytes.int
getType()
Gets the (biometric) type of the image.int
getWidth()
Gets the width of the image in pixels.-
Methods inherited from interface org.jmrtd.lds.LDSElement
getEncoded
-
-
-
-
Field Detail
-
JPEG_MIME_TYPE
static final String JPEG_MIME_TYPE
Mime-type.- See Also:
- Constant Field Values
-
JPEG2000_MIME_TYPE
static final String JPEG2000_MIME_TYPE
Mime-type.- See Also:
- Constant Field Values
-
WSQ_MIME_TYPE
static final String WSQ_MIME_TYPE
Mime-type.- See Also:
- Constant Field Values
-
TYPE_UNKNOWN
static final int TYPE_UNKNOWN
Type of image.- See Also:
- Constant Field Values
-
TYPE_PORTRAIT
static final int TYPE_PORTRAIT
Type of image.- See Also:
- Constant Field Values
-
TYPE_SIGNATURE_OR_MARK
static final int TYPE_SIGNATURE_OR_MARK
Type of image.- See Also:
- Constant Field Values
-
TYPE_FINGER
static final int TYPE_FINGER
Type of image.- See Also:
- Constant Field Values
-
TYPE_IRIS
static final int TYPE_IRIS
Type of image.- See Also:
- Constant Field Values
-
-
Method Detail
-
getType
int getType()
Gets the (biometric) type of the image. One ofTYPE_PORTRAIT
,TYPE_SIGNATURE_OR_MARK
,TYPE_FINGER
,TYPE_IRIS
.- Returns:
- type of image
-
getMimeType
String getMimeType()
Gets the mime-type of the encoded image as aString
.- Returns:
- mime-type string
-
getWidth
int getWidth()
Gets the width of the image in pixels.- Returns:
- image width
-
getHeight
int getHeight()
Gets the height of the image in pixels.- Returns:
- image height
-
getRecordLength
long getRecordLength()
Gets the length of the total record (header and data) in bytes.- Returns:
- the length of the record
-
getImageLength
int getImageLength()
Gets the length of the encoded image in bytes.- Returns:
- the length of the image bytes
-
getImageInputStream
InputStream getImageInputStream()
Gets an input stream from which the image bytes can be read.- Returns:
- image input stream
-
-