PaletteWorkingColorSpace Property

Gets the preferred color space of this Palette instance for performing blending and measuring distance when looking for a nearest color. You can use the Palette(Palette, WorkingColorSpace, Color32, Byte) constructor to create a clone of this Palette using a different working color space.


Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 8.1.0
public WorkingColorSpace WorkingColorSpace { get; }

Property Value






See the Remarks section of the WorkingColorSpace enumeration for details and image examples about using the different color spaces in various operations.

If the value of this property is Default, then the sRGB color space is used because palette entries represent sRGB colors anyway.

If this palette uses a custom nearest color lookup, then it depends on the custom function whether it considers the value of this property.


Please note that palette entries themselves always represent sRGB color values, regardless the value of this property.

See Also