Converts a FreeImage bitmap from one color depth to another.
If the conversion fails the original FreeImage bitmap is returned.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public static FIBITMAP ConvertColorDepth( FIBITMAP dib, FREE_IMAGE_COLOR_DEPTH conversion ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function ConvertColorDepth ( _ dib As FIBITMAP, _ conversion As FREE_IMAGE_COLOR_DEPTH _ ) As FIBITMAP |
| Visual C++ |
|---|
public: static FIBITMAP ConvertColorDepth( FIBITMAP dib, FREE_IMAGE_COLOR_DEPTH conversion ) |
Parameters
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- conversion
- Type: FreeImageAPI..::.FREE_IMAGE_COLOR_DEPTH
The desired output format.
Return Value
Handle to a FreeImage bitmap.
Exceptions
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | dib is null. |