FreeImage.NET Class Library Reference
FreeImageGetTransparentIndex Method |
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) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static int GetTransparentIndex( FIBITMAP dib )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
Return Value
Type: Int32the 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).
See Also