Sets the index of the palette entry to be used as transparent color for the image specified. Does nothing on high color images.

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

Syntax

C#
public static void SetTransparentIndex(
	FIBITMAP dib,
	int index
)
Visual Basic (Declaration)
Public Shared Sub SetTransparentIndex ( _
	dib As FIBITMAP, _
	index As Integer _
)
Visual C++
public:
static void SetTransparentIndex(
	FIBITMAP dib, 
	int index
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
index
Type: System..::.Int32
The index of the palette entry to be set as transparent color.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also