public class RawImage
extends java.lang.Object
BufferedImage.| Modifier and Type | Class and Description |
|---|---|
static class |
RawImage.FileFormat
Image file formats.
|
static class |
RawImage.PixelFormat
Available pixel formats.
|
| Constructor and Description |
|---|
RawImage()
New
RawImage. |
RawImage(RawImage src)
References an existing
RawImage. |
| Modifier and Type | Method and Description |
|---|---|
RawImage |
convertPixelFormat(RawImage.PixelFormat format,
int sline)
Converts the
RawImage to a specific
pixel format. |
RawImage |
create(RawImage.PixelFormat format,
int xsize,
int ysize,
int sline)
Creates a
RawImage. |
RawImage |
duplicate()
Duplicates the
RawImage. |
RawImage |
fromImage(java.awt.image.BufferedImage image)
Converts a
BufferedImage object to RawImage. |
RawImage |
fromVariant(Variant source)
Gets an embedded image from a
Variant. |
int |
getHRes()
Returns the horizontal resolution of the
RawImage in pixel/meters. |
RawImage.PixelFormat |
getPixelFormat()
Returns the pixel format of the
RawImage. |
com.sun.jna.Pointer |
getRawData()
Returns the address of the buffer of the raw pixel data.
|
int |
getRawSize()
Returns the size of the raw pixel data.
|
java.awt.Dimension |
getSize()
Returns the size of the image in pixels.
|
int |
getSLine()
Returns the length of a row in bytes.
|
int |
getVRes()
Returns the vertical resolution of the
RawImage in pixel/meters. |
boolean |
isValid()
Checks if the
RawImage is valid. |
RawImage |
load(BinData buffer)
Loads an image from the memory.
|
BinData |
save(RawImage.FileFormat fileformat)
Saves the image to the memory in a specific
file format.
|
BinData |
save(RawImage.FileFormat fileformat,
Variant properties,
java.lang.String comments)
Saves the image to the memory in a specific
file format.
|
java.awt.image.BufferedImage |
toImage()
Returns the image as a
BufferedImage object. |
Variant |
toVariant(int varid,
java.lang.String varname)
Embeds an image into a
Variant. |
public boolean isValid()
RawImage is valid.RawImage the return value is true.public RawImage.PixelFormat getPixelFormat()
RawImage.RawImage.PixelFormatpublic java.awt.Dimension getSize()
public int getSLine()
public com.sun.jna.Pointer getRawData()
public int getRawSize()
public int getHRes()
RawImage in pixel/meters.RawImage in pixel/meters.public int getVRes()
RawImage in pixel/meters.RawImage in pixel/meters.public RawImage create(RawImage.PixelFormat format, int xsize, int ysize, int sline) throws General
RawImage.format - Pixel format.xsize - Horizontal size of image in pixels.ysize - Vertical size of image in pixels.sline - Length of a row in bytes (min.: xsize * size of a pixel in
bytes). If zero the system computes the correct value.Generalpublic RawImage load(BinData buffer) throws General
buffer - Image data.Generalpublic BinData save(RawImage.FileFormat fileformat) throws General
fileformat - The file format.Generalpublic BinData save(RawImage.FileFormat fileformat, Variant properties, java.lang.String comments) throws General
fileformat - The specific file format.properties - Properties for saving. The properties are described in
the reference manual.comments - Comments for save.Generalpublic RawImage convertPixelFormat(RawImage.PixelFormat format, int sline) throws General
RawImage to a specific
pixel format.format - Pixel format of the target image.sline - Length of a row in bytes (x size * size of a pixel in
bytes). If zero the system computes the correct value.RawImage in the desired
pixel format. (This object.)Generalpublic RawImage duplicate() throws General
RawImage.RawImage.Generalpublic Variant toVariant(int varid, java.lang.String varname) throws General
Variant.public RawImage fromVariant(Variant source) throws General
Variant.public java.awt.image.BufferedImage toImage()
throws General
BufferedImage object.BufferedImage object.GeneralARH Passport Reader v 2.2.0.17 / 2017 July 19 14:58