Skip to content

TilesData Constructors ​

Initializes tiles by copying their pixels.

c#
public TilesData(int width, int height, Byte[] pixels, int bitsPerPixel = 8);

View source

Parameters ​

NameTypeDescription
widthInt32The width of each tile in pixels.
heightInt32The height of each tile in pixels.
pixelsByte[]Tile-major pixels, one byte per index. The length must be a multiple of the tile size.
bitsPerPixelInt32The index bit depth: one, two, four or eight.