FreeImage.NET Class Library Reference
FreeImageConvertColorDepth Method (FIBITMAP, FREE_IMAGE_COLOR_DEPTH, Byte) |
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, byte threshold )
Parameters
- dib
- Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap. - conversion
- Type: FreeImageAPIFREE_IMAGE_COLOR_DEPTH
The desired output format. - threshold
- Type: SystemByte
Threshold value when converting with FICD_01_BPP_THRESHOLD.
Return Value
Type: FIBITMAPHandle to a FreeImage bitmap.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | dib is null. |
See Also