---
title: "SoftMask Constructor "
canonical: https://www.graphicsmill.com/docs/gm/C_Aurigma_GraphicsMill_Drawing_SoftMask_ctor_1_8cc2fe80.htm
product: "Graphics Mill"
---

# SoftMask Constructor 
 
Initializes a new instance of the [SoftMask](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_SoftMask.htm.md) class with the specified mask content.
 
**Namespace:** [Aurigma.GraphicsMill.Drawing](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public SoftMask(GraphicsContainer mask
)
```
 
### Parameters
 
 - mask
     - Type: [Aurigma.GraphicsMill.Drawing.GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md)
A [GraphicsContainer](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_GraphicsContainer.htm.md) whose content defines the opacity mask.
 
## Exceptions
  
|  Exception |  Condition |
| --- | --- |
 |  System.ArgumentNullException |  mask is `null`. |
   
## See Also

### Reference

- [SoftMask Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_SoftMask.htm.md)
- [Aurigma.GraphicsMill.Drawing Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Drawing.htm.md)
