Portrait.fromBuffer Method

Module: Portrait

Definition

Imports the portrait object from a buffer.

@staticmethod
from_buffer(data: bytearray) -> Portrait

Parameters

data bytearray
in Buffer to import the portrait object from.

Returns

The newly created portrait.

Exceptions

An error has occurred during Face Library execution.
static Portrait fromBuffer(Uint8List? data)

Parameters

data Uint8List
in Buffer to import the portrait object from.

Returns

The newly created portrait.

Exceptions

An error has occurred during Face Library execution.
public static Portrait FromBuffer(byte[] data)

Parameters

data byte[]
in Buffer to import the portrait object from.

Returns

The newly created portrait.

Exceptions

An error has occurred during Face Library execution.
public static Portrait fromBuffer(byte[] data) throws FaceException

Parameters

data byte[]
in Buffer to import the portrait object from.

Returns

The newly created portrait.

Exceptions

An error has occurred during Face Library execution.
public static func fromBuffer(data: [UInt8]) throws -> Portrait

Parameters

data [UInt8]
in Buffer to import the portrait object from.

Returns

The newly created portrait.

Exceptions

An error has occurred during Face Library execution.
int id3FacePortrait_FromBuffer (
    ID3_FACE_PORTRAIT hPortrait,
    unsigned char * data,
    int dataSize)

Parameters

in Handle to the Portrait object.

data unsigned char *
in Buffer to import the portrait object from.

dataSize int
in Size of the ‘data’ buffer.

Returns

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