ReadonlydataFlat array of palette indices. Index = x + (y * width).
ReadonlyhThe height of the image in pixels.
ReadonlypaletteThe palette of unique 32-bit colors (ABGR/RGBA packed) found in the image.
ReadonlytransparentThe specific index in the palette reserved for fully transparent pixels.
ReadonlywThe width of the image in pixels.
Represents an image using a palette-based indexing system. Instead of storing 4 bytes (RGBA) per pixel, this class stores a single index into a color palette. This format is optimized for memory efficiency and high-speed pattern matching or recoloring operations.