Skip to content

ImageData Class ​

Definition ​

Image pixels in top-left-origin, row-major order, independent of an on-disk layout.

c#
public abstract class ImageData

View source

Constructors ​

NameDescription
ImageData(Int32, Int32)Initializes image dimensions.

Properties ​

NameDescription
HeightGets the height in pixels.
PixelCountGets the total number of pixels.
WidthGets the width in pixels.

Methods ​

NameDescription
GetPixel(Int32, Int32)Gets the colour at the specified coordinates.
GetPixelOffset(Int32, Int32)Gets the row-major pixel offset, validating the coordinates.