---
title: "Color..::.ToArray32 Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_ToArray32.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/)

# Color.ToArray32 Method 
 
Returns an integer numbers array that contains all channels of the color (16 bits per channel).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function ToArray32 As Integer()
```
 
```csharp
public int[] ToArray32()
```
 
### Return Value
Array that contains channels of the color.
 
## Remarks
  
The order of channels is the same as word order in numeric representation of the color. The last item always contains alpha channel. Therefore the order is a following (from first array item to last):
 
- **RGB**blue, green, red, alpha;
- **CMYK**black, yellow, magenta, cyan, alpha;
- **Grayscale**intensity level, alpha;

Also, you can use non-extended version of this method, i.e. [ToArray()](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_ToArray.htm.md).
 
**Note** 
Although the array contains 32-bit values, only low 16 bits are meaningful. High 16 bits are always initialized with zeros.
   
## See Also

### Reference

- [Color Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
