---
title: "Color..::.GetChannel Method (ColorChannel)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_GetChannel_1_56b85792.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.GetChannel Method (ColorChannel)
 
Gets value stored in specified channel of this color.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Overridable Function GetChannel ( _colorChannel As ColorChannel _
) As Byte
```
 
```csharp
public virtual byte GetChannel(ColorChannel colorChannel
)
```
 
### Parameters
 
 - colorChannel
     - Type: [Aurigma.GraphicsMill.ColorChannel](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorChannel.htm.md)
 [ColorChannel](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorChannel.htm.md) value specifying an alias of channel to retrieve. Draw attention, it does not check color space, so if you pass, say, [Yellow](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorChannel.htm.md) to RGB color, you will get a value stored at the same index as yellow in CMYK (i.e. [Green](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorChannel.htm.md)).
 
### Return Value
Non-extended (8-bit) value stored in specified channel.
 
## Remarks
 You can also use extended version of this property, i.e. [GetChannel32(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_GetChannel32_1_e1836fc4.htm.md). Unlike this property, [GetChannel32(Int32)](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Color_GetChannel32_1_e1836fc4.htm.md) returns extended (16-bit) value.
   
## See Also

### Reference

- [Color Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
- [GetChannel Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_Color_GetChannel.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
