Skip to content

TilesData Constructors

Initializes tiles by copying their pixels.

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

View source

Parameters

Name Type Description
width Int32 The width of each tile in pixels.
height Int32 The height of each tile in pixels.
pixels Byte[] Tile-major pixels, one byte per index. The length must be a multiple of the tile size.
bitsPerPixel Int32 The index bit depth: one, two, four or eight.