Investigates the color type of the bitmap by reading the bitmap's pixel bits and analysing them.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static FREE_IMAGE_COLOR_TYPE GetColorType(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Shared Function GetColorType ( _
	dib As FIBITMAP _
) As FREE_IMAGE_COLOR_TYPE
Visual C++
public:
static FREE_IMAGE_COLOR_TYPE GetColorType(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.

Return Value

The color type of the bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also