Quantizer class abstract

Abstract class for color quantizers, which reduce the total number of colors used by an image to a given maximum, used to convert images to palette images.

Implementers

Constructors

Quantizer.new()

Properties

hashCode int
The hash code for this object.
no setterinherited
palette Palette
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getColorIndex(Color c) int
getColorIndexRgb(int r, int g, int b) int
getIndexImage(Image image) Image
Convert the image to a palette image.
getQuantizedColor(Color c) Color
Find the index of the closest color to c in the colorMap.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited