ChannelsProvider.SwapChannels Method

Swaps channels.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)

Syntax

C#
public void SwapChannels(
	int[] channels
)

Parameters

channels

Type: System.Int32[]

An array of channel indices sorted in the necessary order. E.g. if you need to swap blue and green channel in an RGB bitmap, this array should contain: (1, 0, 2).

Remarks

If number of indices in channels argument is less than number of channels in the current bitmap, the rest channels will be unchanged. If there are more indices than current bitmap provides, all extra indices will be ignored.

Examples

C#
bitmap.Channels.SwapChannels(new int[] { 1, 0, 2 });

See Also

Reference