FreeImage.NET Class Library Reference
FreeImageSetBackgroundColor Method (FIBITMAP, RGBQUAD) |
Set the file background color of an image.
When saving an image to PNG, this background color is transparently saved to the PNG file.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SetBackgroundColor( FIBITMAP dib, ref RGBQUAD bkcolor )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - bkcolor
- Type: FreeImageAPIRGBQUAD
The new background color.
Return Value
Type: BooleanReturns true on success, false on failure.
See Also