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:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
C# |
---|
public static bool SetBackgroundColor( FIBITMAP dib, ref RGBQUAD bkcolor ) |
Visual Basic (Declaration) |
---|
Public Shared Function SetBackgroundColor ( _ dib As FIBITMAP, _ ByRef bkcolor As RGBQUAD _ ) As Boolean |
Visual C++ |
---|
public: static bool SetBackgroundColor( FIBITMAP dib, RGBQUAD% bkcolor ) |
Parameters
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- bkcolor
- Type:
FreeImageAPI..::.RGBQUAD
%
The new background color.