Skip to content

IndexedImageData Class ​

Definition ​

An immutable indexed image with unpacked palette indices and a reusable palette.

c#
public sealed class IndexedImageData : ImageData

View source

Constructors ​

NameDescription
IndexedImageData(Int32, Int32, Byte[], PaletteData, Int32)Initializes an image by copying row-major palette indices.

Properties ​

NameDescription
BitsPerPixelGets the pixel index bit depth.
PaletteGets the reusable palette.
PixelsGets the unpacked row-major palette indices.

Methods ​

NameDescription
GetPixel(Int32, Int32)Gets the colour at the specified coordinates.