Initializes a new instance for the given FreeImage bitmap.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public Palette(
	FIBITMAP dib
)
Visual Basic (Declaration)
Public Sub New ( _
	dib As FIBITMAP _
)
Visual C++
public:
Palette(
	FIBITMAP dib
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.

Exceptions

ExceptionCondition
System..::.ArgumentNullException dib is null.
System..::.ArgumentException dib is not FIT_BITMAP

-or-

dib has more than 8bpp.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also