This documentation is for the old version. Go to the latest Graphics Mill docs

SwapChannels.ChannelsOrder Property

Gets/sets array specifying how to rearrange channel indices.

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


Visual Basic
Public Property ChannelsOrder As Integer()
public int[] ChannelsOrder { get; set; }

Property Value

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). If this array entries are sorted in ascending order, transform will do nothing.


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

See Also