Skip to content

ColourImageData Constructors ​

Initializes an image by copying row-major pixels.

c#
public ColourImageData(int width, int height, Colour[] pixels);

View source

Parameters ​

NameTypeDescription
widthInt32The width in pixels.
heightInt32The height in pixels.
pixelsColour[]Exactly width times height colours, starting at the top-left.