Image.toRawBuffer Method

Module: Image

Definition

Copies image pixels in the specified format into a buffer.

to_raw_buffer(self, pixel_format: PixelFormat, buffer: ImageBuffer) -> None

Parameters

pixel_format PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Face Library execution.
void toRawBuffer(PixelFormat pixelFormat, ImageBuffer buffer)

Parameters

pixelFormat PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Face Library execution.
public void ToRawBuffer(PixelFormat pixelFormat, ImageBuffer buffer)

Parameters

pixelFormat PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Face Library execution.
public void toRawBuffer(PixelFormat pixelFormat, ImageBuffer buffer) throws FaceException

Parameters

pixelFormat PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Face Library execution.
public func toRawBuffer(pixelFormat: PixelFormat, buffer: ImageBuffer) throws

Parameters

pixelFormat PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Face Library execution.
int id3FaceImage_ToRawBuffer (
    ID3_FACE_IMAGE hImage,
    id3FacePixelFormat ePixelFormat,
    ID3_FACE_IMAGE_BUFFER hBuffer)

Parameters

in Handle to the Image object.

ePixelFormat id3FacePixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Returns

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