OctreeQuantizer class

Inheritance

Constructors

OctreeQuantizer(Image image, {int numberOfColors = 256})

Properties

hashCode int
The hash code for this object.
no setterinherited
palette PaletteUint8
getter/setter pairoverride-getter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getColorIndex(Color c) int
override
getColorIndexRgb(int r, int g, int b) int
override
getIndexImage(Image image) Image
Convert the image to a palette image.
inherited
getQuantizedColor(Color c) Color
Find the index of the closest color to c in the colorMap.
override
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