GetRowPointer

GetRowPointer 1:

Gets a pointer to a specific row of an image.

Syntax

Definition:

METHOD GetRowPointer : HRESULT
VAR_INPUT
    nRowIndex : UDINT;
    ppRow     : Pointer To PVOID;
END_VAR

GetRowPointer 2: Inputs

Name

Type

Description

nRowIndex

UDINT

Row index.

ppRow

Pointer To PVOID

Returns a pointer to the requested image row.

GetRowPointer 3: Return value

HRESULT

Further information

Make sure that the describing pointer is of the same elementary type as the pixel type of the image.

Notice

Enabling an Row Pointer

If you create a pointer with GetRowPointer, you must also release it again with the method ReleaseRowPointer!