FreeImage.SetChannel Method

FreeImage.NET

FreeImageSetChannel Method
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) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public static bool SetChannel(
	FIBITMAP dib,
	FIBITMAP dib8,
	FREE_IMAGE_COLOR_CHANNEL channel
)

Parameters

dib
Type: FreeImageAPIFIBITMAP
Handle to a FreeImage bitmap.
dib8
Type: FreeImageAPIFIBITMAP
Handle to the bitmap to insert.
channel
Type: FreeImageAPIFREE_IMAGE_COLOR_CHANNEL
The color channel to replace.

Return Value

Type: Boolean
Returns true on success, false on failure.
See Also