Skip to content

ImageData Class

Definition

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

public abstract class ImageData

View source

Constructors

Name Description
ImageData(Int32, Int32) Initializes image dimensions.

Properties

Name Description
Height Gets the height in pixels.
PixelCount Gets the total number of pixels.
Width Gets the width in pixels.

Methods

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