public class NativeImage
extends com.sun.jna.Structure
The native images are the objects used to transport data from native code to java virtual machine
Modifier and Type | Class and Description |
---|---|
static class |
NativeImage.ByReference
Native Image passed to the native layer by reference
|
static class |
NativeImage.ByValue
Native Image passed to the native layer by value
|
Modifier and Type | Field and Description |
---|---|
com.sun.jna.Pointer |
buffer
Buffer
|
int |
format
Format
|
int |
height
Height
|
com.sun.jna.NativeLong |
length
Length
|
NativeFingerprintQuality |
quality
The fingerprint quality
|
int |
resolution
Resolution
|
int |
width
Width
|
Constructor and Description |
---|
NativeImage()
Default constructor
|
NativeImage(byte[] buffer,
int width,
int height,
int resolution,
int format)
Creates an image from its values
|
NativeImage(Image image)
Shallow copy constructor
|
NativeImage(com.sun.jna.Pointer p)
Structure constructor
|
Modifier and Type | Method and Description |
---|---|
void |
finalize() |
byte[] |
getBuffer()
Gets the image buffer
|
int |
getFormat()
Gets the image format
|
int |
getHeight()
Gets the image height
|
NativeFingerprintQuality |
getQuality() |
int |
getResolution()
Gets the image resolution
|
int |
getWidth()
Gets the image height
|
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, newInstance, read, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toArray, toArray, toString, toString, write, writeField, writeField
public com.sun.jna.Pointer buffer
Buffer
public com.sun.jna.NativeLong length
Length
public int width
Width
public int height
Height
public int resolution
Resolution
public int format
Format
public NativeFingerprintQuality quality
The fingerprint quality
public NativeImage()
Default constructor
public NativeImage(com.sun.jna.Pointer p)
Structure constructor
p
- public NativeImage(byte[] buffer, int width, int height, int resolution, int format)
Creates an image from its values
buffer
- width
- height
- resolution
- format
- public NativeImage(Image image)
Shallow copy constructor
public void finalize()
finalize
in class java.lang.Object
public byte[] getBuffer()
Gets the image buffer
public int getHeight()
Gets the image height
public int getWidth()
Gets the image height
public int getResolution()
Gets the image resolution
public int getFormat()
Gets the image format
public NativeFingerprintQuality getQuality()