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

# Image.getPixels Method

Module: Image

## Definition

Gets a pointer to the image pixels.

Warning

This method is unsafe! The user must handle the pixels pointer carefully.

C#

    public IntPtr GetPixels()

Returns

> `IntPtr`
> Pointer to the image pixels.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3FaceImage_GetPixels (
        ID3_FACE_IMAGE hImage,
        void ** pixels)

Parameters

> `hImage` ID3_FACE_IMAGE
> in Handle to the Image object.
> `pixels` void **
> out Pointer to the image pixels.

Returns

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