FingerImage.fromRawBuffer Method

Module: FingerImage

Definition

Creates an Image from the specified raw data buffer.

static FingerImage fromRawBuffer(Uint8List? pixels, int width, int height, int stride, PixelFormat srcPixelFormat, PixelFormat dstPixelFormat)

Parameters

pixels Uint8List
in A buffer that contains image pixels.

width int
in The width, in pixels, of the image.

height int
in The height, in pixels, of the image.

stride int
in The stride, in pixels, of the image.

srcPixelFormat PixelFormat
in The pixel format of the input image.

dstPixelFormat PixelFormat
in 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.