Skip to content

ImageData.GetPixelOffset Method ​

Definition ​

Gets the row-major pixel offset, validating the coordinates.

c#
protected int GetPixelOffset(int x, int y);

View source

Parameters ​

NameTypeDescription
xInt32The horizontal coordinate.
yInt32The vertical coordinate.

Returns ​

Int32

The pixel offset.