Search
Preparing search index...
The search index is not available
image-q
Options
All
Public
Public/Protected
All
Inherited
Menu
image-q
palette
RGBQuant
Class RGBQuant
Hierarchy
AbstractPaletteQuantizer
RGBQuant
Index
Constructors
constructor
Methods
quantize
quantize
Sync
sample
Constructors
constructor
new RGBQuant
(
colorDistanceCalculator
:
AbstractDistanceCalculator
, colors
?:
number
, method
?:
number
)
:
RGBQuant
Parameters
colorDistanceCalculator:
AbstractDistanceCalculator
colors:
number
= 256
method:
number
= 2
Returns
RGBQuant
Methods
quantize
quantize
(
)
:
Generator
<
PaletteQuantizerYieldValue
,
void
,
undefined
>
Returns
Generator
<
PaletteQuantizerYieldValue
,
void
,
undefined
>
quantize
Sync
quantize
Sync
(
)
:
Palette
Returns
Palette
sample
sample
(
image
:
PointContainer
)
:
void
Parameters
image:
PointContainer
Returns
void
Exports
constants
conversion
distance
image
palette
quality
utils
RGBQuant
constructor
quantize
quantize
Sync
sample
Generated using
TypeDoc