Insert a 8-bit dib into a 24- or 32-bit image. Both images must have to same width and height.

Namespace:  FreeImageAPI
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public static bool SetChannel(
	FIBITMAP dib,
	FIBITMAP dib8,
	FREE_IMAGE_COLOR_CHANNEL channel
)
Visual Basic (Declaration)
Public Shared Function SetChannel ( _
	dib As FIBITMAP, _
	dib8 As FIBITMAP, _
	channel As FREE_IMAGE_COLOR_CHANNEL _
) As Boolean
Visual C++
public:
static bool SetChannel(
	FIBITMAP dib, 
	FIBITMAP dib8, 
	FREE_IMAGE_COLOR_CHANNEL channel
)

Parameters

dib
Type: FreeImageAPI..::.FIBITMAP
Handle to a FreeImage bitmap.
dib8
Type: FreeImageAPI..::.FIBITMAP
Handle to the bitmap to insert.
channel
Type: FreeImageAPI..::.FREE_IMAGE_COLOR_CHANNEL
The color channel to replace.

Return Value

Returns true on success, false on failure.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also