Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# ImageBuffer.getPixels Method

Module: ImageBuffer

## Definition

Gets a pointer to the pixels of the image. Unsafe! The user must handle the pixels pointer carefully.

C#

    public IntPtr GetPixels()

Returns

> `IntPtr`
> Pointer to the pixels of the image.

Exceptions

> DocumentException
> An error has occurred during Document Library execution.

C

    int id3DocumentImageBuffer_GetPixels (
        ID3_DOCUMENT_IMAGE_BUFFER hImageBuffer,
        void ** pixels)

Parameters

> `hImageBuffer` ID3_DOCUMENT_IMAGE_BUFFER
> in Handle to the ImageBuffer object.
> `pixels` void **
> out Pointer to the pixels of the image.

Returns

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