FingerImage.fromBuffer Method

Module: FingerImage

Definition

Creates an Image from the specified data buffer.

@staticmethod
from_buffer(data: bytearray, pixel_format: PixelFormat) -> FingerImage

Parameters

data bytearray
in A buffer that contains the image data.

pixel_format PixelFormat
in The destination pixel format to convert the input to.

Returns

The newly created finger image.

Exceptions

An error has occurred during Finger Library execution.
static FingerImage fromBuffer(Uint8List? data, PixelFormat pixelFormat)

Parameters

data Uint8List
in A buffer that contains the image data.

pixelFormat PixelFormat
in The destination pixel format to convert the input to.

Returns

The newly created finger image.

Exceptions

An error has occurred during Finger Library execution.
public static FingerImage FromBuffer(byte[] data, PixelFormat pixelFormat)

Parameters

data byte[]
in A buffer that contains the image data.

pixelFormat PixelFormat
in The destination pixel format to convert the input to.

Returns

The newly created finger image.

Exceptions

An error has occurred during Finger Library execution.
public static FingerImage fromBuffer(byte[] data, PixelFormat pixelFormat) throws FingerException

Parameters

data byte[]
in A buffer that contains the image data.

pixelFormat PixelFormat
in The destination pixel format to convert the input to.

Returns

The newly created finger image.

Exceptions

An error has occurred during Finger Library execution.
public static func fromBuffer(data: [UInt8], pixelFormat: PixelFormat) throws -> FingerImage

Parameters

data [UInt8]
in A buffer that contains the image data.

pixelFormat PixelFormat
in The destination pixel format to convert the input to.

Returns

The newly created finger image.

Exceptions

An error has occurred during Finger Library execution.
int id3FingerImage_FromBuffer (
    ID3_FINGER_IMAGE hFingerImage,
    unsigned char * data,
    int dataSize,
    id3FingerPixelFormat ePixelFormat)

Parameters

hFingerImage ID3_FINGER_IMAGE
in Handle to the FingerImage object.

data unsigned char *
in A buffer that contains the image data.

dataSize int
in Size of the ‘data’ buffer.

in The destination pixel format to convert the input to.

Returns

int
An error code.
See id3FingerError file for the list of possible error codes.