---
title: "ChannelsProvider..::.DiscardAlpha Method (Color)"
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ChannelsProvider_DiscardAlpha_1_929597d9.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.DiscardAlpha Method (Color)
 
Removes alpha channel from the current bitmap. Alpha channel is flattened using specified color (i.e. each pixel is alpha-blended with 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 Sub DiscardAlpha ( _backgroundColor As Color _
)
```
 
```csharp
public void DiscardAlpha(Color backgroundColor
)
```
 
### Parameters
 
 - backgroundColor
     - 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 blend semi-transparent areas with.
 
## Remarks
 If you do not want to flatten the alpha channel, use [another overloaded version of this method without arguments](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ChannelsProvider_DiscardAlpha.htm.md).
   
## See Also

### Reference

- [ChannelsProvider Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_ChannelsProvider.htm.md)
- [DiscardAlpha Overload](https://www.graphicsmill.com/docs/gm5/O_T_Aurigma_GraphicsMill_ChannelsProvider_DiscardAlpha.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
