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.
Namespace: KGySoft.Drawing.ImagingAssembly: KGySoft.Drawing.Core (in KGySoft.Drawing.Core.dll) Version: 10.0.0-rc.1
public bool Grayscale {
get;
set; }
Public Property Grayscale As Boolean
Get
Set
public:
property bool Grayscale {
bool get ();
void set (bool value);
}
member Grayscale : bool with
get, set
Property Value
Boolean