Search
Preparing search index...
The search index is not available
Image Quantization Library (image-q)
Options
All
Public
Public/Protected
All
Inherited
Externals
Only exported
Menu
Globals
IQ
Image
ErrorDiffusionArray
Class ErrorDiffusionArray
Hierarchy
ErrorDiffusionArray
Implements
IImageDitherer
Index
Constructors
constructor
Properties
_calculate
Error
LikeGIMP
_distance
_kernel
_min
Color
Distance
_serpentine
Methods
_fill
Error
Line
_set
Kernel
quantize
Constructors
constructor
new
Error
Diffusion
Array
(
colorDistanceCalculator
:
IDistanceCalculator
, kernel
:
ErrorDiffusionArrayKernel
, serpentine
?:
boolean
, minimumColorDistanceToDither
?:
number
, calculateErrorLikeGIMP
?:
boolean
)
:
ErrorDiffusionArray
Parameters
colorDistanceCalculator:
IDistanceCalculator
kernel:
ErrorDiffusionArrayKernel
Default value
serpentine:
boolean
= true
Default value
minimumColorDistanceToDither:
number
= 0
Default value
calculateErrorLikeGIMP:
boolean
= false
Returns
ErrorDiffusionArray
Properties
Private
_calculate
Error
LikeGIMP
_calculate
Error
LikeGIMP
:
boolean
true = GIMP, false = XNVIEW
Private
_distance
_distance
:
IDistanceCalculator
Private
_kernel
_kernel
:
number
[]
Private
_min
Color
Distance
_min
Color
Distance
:
number
Private
_serpentine
_serpentine
:
boolean
Methods
Private
_fill
Error
Line
_fill
Error
Line
(
errorLine
:
number
[]
, width
:
number
)
:
void
Parameters
errorLine:
number
[]
width:
number
Returns
void
Private
_set
Kernel
_set
Kernel
(
kernel
:
ErrorDiffusionArrayKernel
)
:
void
Parameters
kernel:
ErrorDiffusionArrayKernel
Returns
void
quantize
quantize
(
pointBuffer
:
PointContainer
, palette
:
Palette
)
:
PointContainer
Parameters
pointBuffer:
PointContainer
palette:
Palette
Returns
PointContainer
Globals
Externals
IQ
Constants
Conversion
Distance
Image
Space
Filling
Curves
Palette
Quality
Utils
Error
Diffusion
Array
Kernel
Error
Diffusion
Array
constructor
_calculate
Error
LikeGIMP
_distance
_kernel
_min
Color
Distance
_serpentine
_fill
Error
Line
_set
Kernel
quantize
Error
Diffusion
Riemersma
Nearest
Color
IImage
Ditherer
Generated using
TypeDoc
true = GIMP, false = XNVIEW