---
title: "SetAlpha Constructor (Pipeline, Boolean)"
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Transforms_SetAlpha_ctor_2_1552d083.htm
product: "Graphics Mill"
---

# SetAlpha Constructor (Pipeline, Boolean)
 
Initializes a new instance of the [SetAlpha](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_SetAlpha.htm.md) class using the specified settings.
 
**Namespace:** [Aurigma.GraphicsMill.Transforms](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public SetAlpha(Pipeline alphaSource,bool autoDisposeSource
)
```
 
### Parameters
 
 - alphaSource
     - Type: [Aurigma.GraphicsMill.Pipeline](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Pipeline.htm.md)
A grayscale image to initialize alpha channel with. You can change this value later using the [AlphaSource](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_SetAlpha_AlphaSource.htm.md) property.

 - autoDisposeSource
     - Type: System.Boolean
 `true` if the alpha source (specified with the [AlphaSource](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_SetAlpha_AlphaSource.htm.md) property) will be disposed along with this [SetAlpha](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_SetAlpha.htm.md); otherwise, `false`. You can change this value later using the [AutoDisposeAlphaSource](https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Transforms_SetAlpha_AutoDisposeAlphaSource.htm.md) property.
   
## See Also

### Reference

- [SetAlpha Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Transforms_SetAlpha.htm.md)
- [SetAlpha Overload](https://www.graphicsmill.com/docs/gm/O_T_Aurigma_GraphicsMill_Transforms_SetAlpha_ctor.htm.md)
- [Aurigma.GraphicsMill.Transforms Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Transforms.htm.md)
