---
title: "ChannelsProvider..::.Transparentize Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ChannelsProvider_Transparentize_2_d079cd70.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.Transparentize Method 
 
Sets alpha values of pixels with specified colors (and tolerant ones) to transparent.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Sub Transparentize ( _transparentColor As Color, _tolerance As Single _
)
```
 
```csharp
public void Transparentize(Color transparentColor,float tolerance
)
```
 
### Parameters
 
 - transparentColor
     - Type: [Aurigma.GraphicsMill.Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md)
 [Color](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Color.htm.md) value specifying a color to transparentize.

 - tolerance
     - Type: [System.Single](http://msdn2.microsoft.com/en-us/3www918f)
Value in range [0, 1] specifying admissible tolerance (distance between colors in color space) when comparing current color and transparent color. Minimum value (0) means exact match of the colors, maximum value (1) means that any color matches.
 
## Examples
  
```
bitmap.Channels.Transparentize(Aurigma.GraphicsMill.RgbColor.LightBlue, 0.3F)
```
 
```csharp
bitmap.Channels.Transparentize(Aurigma.GraphicsMill.RgbColor.LightBlue, 0.3f);
```
   
## See Also

### Reference

- [ChannelsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ChannelsProvider.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
