Retrieves the red, green, blue or alpha channel of a 24- or 32-bit image.
Namespace:
FreeImageAPIAssembly: FreeImageNET (in FreeImageNET.dll)
Syntax
| C# |
|---|
public static FIBITMAP GetChannel( FIBITMAP dib, FREE_IMAGE_COLOR_CHANNEL channel ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function GetChannel ( _ dib As FIBITMAP, _ channel As FREE_IMAGE_COLOR_CHANNEL _ ) As FIBITMAP |
| Visual C++ |
|---|
public: static FIBITMAP GetChannel( FIBITMAP dib, FREE_IMAGE_COLOR_CHANNEL channel ) |
Parameters
- dib
- Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
- channel
- Type: FreeImageAPI..::.FREE_IMAGE_COLOR_CHANNEL
The color channel to extract.