IndexedImageData Constructors
Initializes an image by copying row-major palette indices.
c#
public IndexedImageData(int width, int height, Byte[] pixels, PaletteData palette, int bitsPerPixel = 8);Parameters
| Name | Type | Description |
|---|---|---|
width | Int32 | The width in pixels. |
height | Int32 | The height in pixels. |
pixels | Byte[] | One byte per pixel, even for bit depths below eight. |
palette | PaletteData | The palette. Its size must fit the bit depth and contain every referenced index. |
bitsPerPixel | Int32 | The index bit depth: one, two, four or eight. |