FreeImage.IsGreyscaleImage Method

FreeImage.NET

FreeImageIsGreyscaleImage Method
Returns whether the image is a greyscale image or not. The function scans all colors in the bitmaps palette for entries where red, green and blue are not all the same (not a grey color). Supports 1-, 4- and 8-bit bitmaps.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool IsGreyscaleImage(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.

Return Value

Type: Boolean
True if the image is a greyscale image, else false.
Exceptions
ExceptionCondition
ArgumentNullExceptiondib is null.
See Also