Click or drag to resize

IMcDibAccessSetMultichannelRGB Method

For mciGenericMultiBand image interpretations, set the mapping of channel indices onto Red, Green, Blue and Alpha DIB color channels.

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Function SetMultichannelRGB ( 
	<OptionalAttribute> MapChannelToRGB As Object
) As Boolean

Parameters

MapChannelToRGB (Optional)
Type: SystemObject
An array of 4 channel integer indices indicating which source channels of a multiband image are to be mapped onto the Red, Green, Blue and Alpha channels of the DIB produced by a call to GetDibBytes. The default array is 0, 1, 2, 3 which results in channel 0 being shown as Red, channel 1 as Green, channel 2 as Blue and channel 3 as Alpah; all higher channels are not displayed.

Return Value

Type: Boolean
True if the mapping actually changes.
Remarks
For instances backed by an image with a McImageType.Interpretation of mciGenericMultiBand (which may have many more than 3 channels per pixel), this method determines which bands of each pixel are displayed as Red, Green, Blue and Alpha. If a LUT is supplied to the SetDisplayLut method with number of LUT channels equal to the number of image channels, then this mapping also determines which supplied LUT channel is used as the Red, Green, Blue and Alpha LUTs.
See Also