Initializes a new instance for the given FreeImage bitmap.
Namespace:
FreeImageAPIAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | dib is null. |
System..::.ArgumentException | dib is not FIT_BITMAP-or-dib has more than 8bpp. |