FreeImage.SetBackgroundColor Method (FIBITMAP, RGBQUAD)

FreeImage.NET

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: Boolean
Returns true on success, false on failure.
See Also