---
title: "ChannelsProvider Class"
canonical: https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_ChannelsProvider.htm
product: "Graphics Mill"
---

# ChannelsProvider Class
 
Contains methods and properties providing access to bitmap channels.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public sealed class ChannelsProvider
```
 
## Remarks
 This class is accessible via the [Bitmap.Channels](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_Channels.htm.md) property. It allows you to extract bitmap channels to separate grayscale images, or replace some channel with another grayscale bitmap. You can do that using [Channel](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ChannelsProvider_Channel.htm.md) properties. Here you can set an alpha channel ([SetAlpha()](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ChannelsProvider_SetAlpha.htm.md)) or remove it ([RemoveAlpha()](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_ChannelsProvider_RemoveAlpha.htm.md) method). Using [Transparentize(Color, Single)](https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_ChannelsProvider_Transparentize_2_d079cd70.htm.md) method you can make alpha channel transparent at the areas with specified color.
 
## Examples
  
```csharp
using (var bitmap = new Bitmap(@"Images\cmyk.tif"))
{
    var cyanBitmap = bitmap.Channels[Channel.Cyan];
    cyanBitmap.Save(@"Images\Output\Cmyk_test_Channel_C.tif");

    var alphaBitmap = bitmap.Channels[Channel.Alpha];
    alphaBitmap.Save(@"Images\Output\Cmyk_test_Channel_A.tif");
}
```
 
## Inheritance Hierarchy
  
- System.Object
    - Aurigma.GraphicsMill.ChannelsProvider
 
## Thread Safety
 Static members of this type are not safe for multi-threaded operations. Instance members of this type are not safe for multi-threaded operations.
   
## See Also

### Reference

- [ChannelsProvider Members](https://www.graphicsmill.com/docs/gm/AllMembers_T_Aurigma_GraphicsMill_ChannelsProvider.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill.htm.md)
- [Bitmap.Channels](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Bitmap_Channels.htm.md)

### Manual

- [Reading and Writing Channels](https://www.graphicsmill.com/docs/gm/reading-and-writing-channels.htm.md)
