Returns the palette entry used as transparent color for the image specified. Works for palletised images only and returns -1 for high color images or if the image has no color set to be transparent.

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

Syntax

C#
public static int GetTransparentIndex(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Shared Function GetTransparentIndex ( _
	dib As FIBITMAP _
) As Integer
Visual C++
public:
static int GetTransparentIndex(
	FIBITMAP dib
)

Parameters

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

Return Value

the index of the palette entry used as transparent color for the image specified or -1 if there is no transparent color found (e.g. the image is a high color image).

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also