---
title: "ChannelsProvider..::.Channel Property (ColorChannel)"
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_ChannelsProvider_Channel_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/)

# ChannelsProvider.Channel Property (ColorChannel)
 
Extracts/replaces specified bitmap channel to/with grayscale [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md).
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Default Property Channel ( _colorChannel As ColorChannel _
) As Bitmap
```
 
```csharp
public Bitmap this[ColorChannel colorChannel
] { get; set; }
```
 
### 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 channel stored at the same index as yellow in CMYK (i.e. [Green](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ColorChannel.htm.md)).
 
### Property Value
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) class instance specifying a bitmap channel. It always has the same dimensions as source bitmap and its pixel format is [Format8bppGrayScale](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md) (if source bitmap is not extended) or [Format16bppGrayScale](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_PixelFormat.htm.md) (if source bitmap is extended).
 
## Examples
  
```
Dim red As Aurigma.GraphicsMill.Bitmap = _
 bitmap.Channels(Aurigma.GraphicsMill.ColorChannel.Red)
```
 
```csharp
Aurigma.GraphicsMill.Bitmap red =
    bitmap.Channels[Aurigma.GraphicsMill.ColorChannel.Red];
```
 
```
bitmap.Channels(Aurigma.GraphicsMill.ColorChannel.Red) = red
```
 
```csharp
bitmap.Channels[Aurigma.GraphicsMill.ColorChannel.Red] = red;
```
   
## See Also

### Reference

- [ChannelsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ChannelsProvider.htm.md)
- [Channel Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ChannelsProvider_Channel.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
