FreeImage.GetColorsUsed Method

FreeImage.NET

FreeImageGetColorsUsed Method
Returns the number of colors used in a bitmap.

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

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.

Return Value

Type: UInt32
Palette-size for palletised bitmaps, and 0 for high-colour bitmaps.
See Also