|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.griaule.grFinger.FingerprintImage
public class FingerprintImage
This class represents a fingerprint raw image.
Field Summary | |
---|---|
static int |
GRCAP_IMAGE_FORMAT_BMP
Inadicates a bitmap image format. |
Constructor Summary | |
---|---|
FingerprintImage(GrFinger grFinger,
byte[] rawImage,
int width,
int height,
int resolution)
Create a new FingerprintImage object with the supplied width, height, resolution. |
Method Summary | |
---|---|
int |
getHeight()
Get image height in pixels. |
byte[] |
getRawImage()
Get raw image as an array of bytes. |
int |
getResolution()
Get the resolution of the image in dpi. |
int |
getWidth()
Get image width in pixels. |
ImageProducer |
newImageProducer()
Returns an ImageProducer object to allow the fingerprint image to be shown on the screen. |
void |
saveToFile(String filename,
int imageFormat)
Save the raw image to a file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GRCAP_IMAGE_FORMAT_BMP
Constructor Detail |
---|
public FingerprintImage(GrFinger grFinger, byte[] rawImage, int width, int height, int resolution)
grFinger
- Instance of GrFinger.rawImage
- The fingerprint image in the raw format. Each byte represents
one pixel of the image from top to bottom, left to right, each
line immediately following the previous one, without padding.
Each pixel is a grayscale value from 0 (black) to 255 (white).width
- The image width in pixels.height
- The image height in pixels.resolution
- The image resolution in dpi.Method Detail |
---|
public int getHeight()
public byte[] getRawImage()
public int getWidth()
public void saveToFile(String filename, int imageFormat) throws GrErrorException
filename
- The filename to create.imageFormat
- The image format written to the file. The supported formats are availble as static fields
in class FingerprintImage.
GrErrorException
public int getResolution()
public ImageProducer newImageProducer() throws GrErrorException
GrErrorException
Component.createImage(java.awt.image.ImageProducer)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |