ColorQuantizer

fun interface ColorQuantizer(source)

Interface for color quantization algorithms.

This interface defines a function to quantize an array of RGB values into a color table with a specified maximum number of colors.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract fun quantize(rgb: ByteArray, maxColors: Int): ColorTable

Creates a ColorTable with a maximum number of colors from the given RGB data.