FreeImage.NET Class Library Reference
FreeImageConvertColorDepth Method (FIBITMAP, FREE_IMAGE_COLOR_DEPTH) |
Converts a FreeImage bitmap from one color depth to another.
If the conversion fails the original FreeImage bitmap is returned.
Namespace: FreeImageAPI
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static FIBITMAP ConvertColorDepth( FIBITMAP dib, FREE_IMAGE_COLOR_DEPTH conversion )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - conversion
- Type: FreeImageAPIFREE_IMAGE_COLOR_DEPTH
The desired output format.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | dib is null. |
See Also