---
title: "ChannelsProvider..::.DiscardAlpha Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ChannelsProvider_DiscardAlpha.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 
 
Removes alpha channel from the current bitmap. Alpha channel is just discarded without affecting other channels of the pixel.
 
**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
```
 
```csharp
public void DiscardAlpha()
```
 
## Remarks
 This overloaded method does not flatten the alpha channel (it will be discarded without additional processing). If you need to flatten alpha channel by blending it with some color, use [another overloaded version of this method with Aurigma.GraphicsMill.Color argument](https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_ChannelsProvider_DiscardAlpha_1_929597d9.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)
