OptimizedPaletteQuantizerConfigureColorSpace Method

Configures the working color space of the generated Palette to be used for blending and performing nearest color search. The configuration may also affect the behavior of ditherers that use this quantizer.
See the Remarks section of the WorkingColorSpace enumeration for details and image examples about using the different color spaces in various operations.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.1.0
C#
public OptimizedPaletteQuantizer ConfigureColorSpace(
	WorkingColorSpace workingColorSpace
)

Parameters

workingColorSpace  WorkingColorSpace
Specifies the working color space for the generated Palette.

Return Value

OptimizedPaletteQuantizer
An OptimizedPaletteQuantizer instance that uses the specified color space.

Exceptions

ArgumentOutOfRangeExceptionworkingColorSpace is not one of the defined values.

See Also