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 FreeImageBitmap GetChannel(
	FREE_IMAGE_COLOR_CHANNEL channel
)
Visual Basic (Declaration)
Public Function GetChannel ( _
	channel As FREE_IMAGE_COLOR_CHANNEL _
) As FreeImageBitmap
Visual C++
public:
FreeImageBitmap^ GetChannel(
	FREE_IMAGE_COLOR_CHANNEL channel
)

Parameters

channel
Type: FreeImageAPI..::.FREE_IMAGE_COLOR_CHANNEL
The color channel to extract.

Return Value

The color channel in a new instance.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also