Returns the number of colors used in a bitmap.

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

Syntax

C#
public static uint GetColorsUsed(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Shared Function GetColorsUsed ( _
	dib As FIBITMAP _
) As UInteger
Visual C++
public:
static unsigned int GetColorsUsed(
	FIBITMAP dib
)

Parameters

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

Return Value

Palette-size for palletised bitmaps, and 0 for high-colour bitmaps.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also