PredefinedColorsQuantizerConfigureColorSpace Method

Configures the preferred working color space for this PredefinedColorsQuantizer. The configuration might be ignored if this instance was created from a custom function. The configuration may affect alpha blending, nearest color lookup if this quantizer has a Palette, and also 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: 9.1.1
C#
public PredefinedColorsQuantizer ConfigureColorSpace(
	WorkingColorSpace workingColorSpace
)

Parameters

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

Return Value

PredefinedColorsQuantizer
An OptimizedPaletteQuantizer instance that uses the specified color space.

Exceptions

ArgumentOutOfRangeExceptionworkingColorSpace is not one of the defined values.

See Also