PixelFormatInfoGrayscale Property

Gets or sets whether the represented pixel format is a grayscale one. For Indexed formats this property can be because grayscale nature is determined by the current palette. Setting this property for non-indexed custom grayscale formats helps to auto select the preferable strategy for some operations such as dithering.

Definition

Namespace: KGySoft.Drawing.Imaging
Assembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
C#
public bool Grayscale {
	get;
 set; }

Property Value

Boolean

See Also