Retrieves the red, green, blue or alpha channel of a 24- or 32-bit image.

Namespace:  FreeImageAPI
Assembly:  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.

Return Value

Handle to a FreeImage bitmap.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also