ColorTable

interface ColorTable(source)

Interface representing a color table used for color quantization.

Properties

Link copied to clipboard
abstract val colors: ByteArray

The reduced color palette. Each color is represented by three consecutive bytes in the order of red, green, and blue.

Functions

Link copied to clipboard
abstract fun getColorIndex(red: Int, green: Int, blue: Int): Int

Returns the index of the closest color in the color table.