CaptureImage.toRawBuffer Method

Module: CaptureImage

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 Devices 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 Devices 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 Devices Library execution.
public void toRawBuffer(PixelFormat pixelFormat, ImageBuffer buffer) throws DevicesException

Parameters

pixelFormat PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Devices Library execution.
int id3DevicesCaptureImage_ToRawBuffer (
    ID3_DEVICES_CAPTURE_IMAGE hCaptureImage,
    id3DevicesPixelFormat ePixelFormat,
    ID3_DEVICES_IMAGE_BUFFER hBuffer)

Parameters

in Handle to the CaptureImage object.

in The pixel format.

in Buffer that receives the raw image data.

Returns

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