Aurigma Graphics Mill 5.5 for .NET
ChannelsProvider..::.SwapChannels Method
Swaps channels.
Namespace:
Aurigma.GraphicsMill
Assembly:
Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
Syntax
Visual Basic
Public Sub SwapChannels ( _ channels As Integer() _ )
C#
public void SwapChannels( int[] channels )
Parameters
- channels
-
Type: array< System..::.Int32 >[]()[]
An array of channel indices sorted in the necessary order. E.g. if you need to swap blue and green channel in RGB bitmap, this array will be looking in the following way: (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
Visual Basic
bitmap.Channels.SwapChannels(New Integer() {1, 0, 2})
C#
bitmap.Channels.SwapChannels(new int[] {1, 0, 2});