---
title: "SwapChannels..::.ChannelsOrder Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Transforms_SwapChannels_ChannelsOrder.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# SwapChannels.ChannelsOrder Property 
 
Gets/sets array specifying how to rearrange channel indices.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Property ChannelsOrder As Integer()
```
 
```csharp
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.
 
## Remarks
 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

### Reference

- [SwapChannels Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_SwapChannels.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Transforms.htm.md)
