FingerImage.fromRawBuffer Method¶
Module: FingerImage
Definition¶
Creates an Image from the specified raw data buffer.
@staticmethod
from_raw_buffer(pixels: bytearray, width: int, height: int, stride: int, src_pixel_format: PixelFormat, dst_pixel_format: PixelFormat) -> FingerImage
Parameters
pixels
bytearrayin A buffer that contains image pixels.width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.stride
intin The stride, in pixels, of the image.src_pixel_format
PixelFormatin The pixel format of the input image.dst_pixel_format
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
static FingerImage fromRawBuffer(Uint8List? pixels, int width, int height, int stride, PixelFormat srcPixelFormat, PixelFormat dstPixelFormat)
Parameters
pixels
Uint8Listin A buffer that contains image pixels.width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.stride
intin The stride, in pixels, of the image.srcPixelFormat
PixelFormatin The pixel format of the input image.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
public static FingerImage FromRawBuffer(byte[] pixels, int width, int height, int stride, PixelFormat srcPixelFormat, PixelFormat dstPixelFormat)
Parameters
pixels
byte[]in A buffer that contains image pixels.width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.stride
intin The stride, in pixels, of the image.srcPixelFormat
PixelFormatin The pixel format of the input image.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
public static FingerImage fromRawBuffer(byte[] pixels, int width, int height, int stride, PixelFormat srcPixelFormat, PixelFormat dstPixelFormat) throws FingerException
Parameters
pixels
byte[]in A buffer that contains image pixels.width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.stride
intin The stride, in pixels, of the image.srcPixelFormat
PixelFormatin The pixel format of the input image.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
public static func fromRawBuffer(pixels: [UInt8], width: Int32, height: Int32, stride: Int32, srcPixelFormat: PixelFormat, dstPixelFormat: PixelFormat) throws -> FingerImage
Parameters
pixels
[UInt8]in A buffer that contains image pixels.width
Int32in The width, in pixels, of the image.height
Int32in The height, in pixels, of the image.stride
Int32in The stride, in pixels, of the image.srcPixelFormat
PixelFormatin The pixel format of the input image.dstPixelFormat
PixelFormatin The pixel format into which to convert the input image.
Returns
The newly created finger image.
Exceptions
An error has occurred during Finger Library execution.
int id3FingerImage_FromRawBuffer (
ID3_FINGER_IMAGE hFingerImage,
unsigned char * pixels,
int pixelsSize,
int width,
int height,
int stride,
id3FingerPixelFormat eSrcPixelFormat,
id3FingerPixelFormat eDstPixelFormat)
Parameters
hFingerImage
ID3_FINGER_IMAGEin Handle to the FingerImage object.pixels
unsigned char *in A buffer that contains image pixels.pixelsSize
intin Size of the ‘pixels’ buffer.width
intin The width, in pixels, of the image.height
intin The height, in pixels, of the image.stride
intin The stride, in pixels, of the image.eSrcPixelFormat
id3FingerPixelFormatin The pixel format of the input image.eDstPixelFormat
id3FingerPixelFormatin The pixel format into which to convert the input image.
Returns