FreeImage.GetBackgroundColor Method

FreeImage.NET

FreeImageGetBackgroundColor Method
Returns the file background color of an image. For 8-bit images, the color index in the palette is returned in the rgbReserved member of the bkcolor parameter.

Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool GetBackgroundColor(
	FIBITMAP dib,
	out RGBQUAD bkcolor
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
bkcolor
Type: FreeImageAPIRGBQUAD
The background color.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also