DocumentImage.toRawBuffer Method

Module: DocumentImage

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

Parameters

pixelFormat PixelFormat
in The pixel format.

in Buffer that receives the raw image data.

Exceptions

An error has occurred during Document 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 Document Library execution.
int id3DocumentImage_ToRawBuffer (
    ID3_DOCUMENT_IMAGE hDocumentImage,
    id3DocumentPixelFormat ePixelFormat,
    ID3_DOCUMENT_IMAGE_BUFFER hBuffer)

Parameters

hDocumentImage ID3_DOCUMENT_IMAGE
in Handle to the DocumentImage object.

in The pixel format.

in Buffer that receives the raw image data.

Returns

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