60 [[nodiscard]] std::size_t
index()
const
Represents an indexed color pixel.
auto operator<=>(const IndexPixel &) const =default
bool operator==(const IndexPixel &other) const =default
IndexPixel(std::size_t index)
std::size_t palette_index() const
Returns the palette index (upper 4 bits).
std::size_t color_index() const
Returns the color index within a palette (lower 4 bits).
bool is_transparent() const
Checks if this indexed pixel is transparent.
std::size_t index() const
Returns the raw index value.