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.


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


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

Return Value

An OptimizedPaletteQuantizer instance that uses the specified color space.


ArgumentOutOfRangeExceptionworkingColorSpace is not one of the defined values.

See Also