PaletteExtractor class final
Extracts a ColorPalette from raw ARGB pixel data.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
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
Static Methods
-
extract(
List< int> argbPixels, {int maxColors = 64, int desiredColors = 16, PaletteWeights weights = const PaletteWeights()}) → Future<ColorPalette> -
Quantizes
argbPixelsand produces a ColorPalette. -
fromImage(
Image image, {int maxColors = 64, int desiredColors = 16, int maxSamplePixels = 128 * 128, Rect? region, PaletteWeights weights = const PaletteWeights()}) → Future< ColorPalette> - Extracts a ColorPalette from a source image, sampling pixels to keep the work bounded.