---
title: "Bitmap..::.GetEmptyMask Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Bitmap_GetEmptyMask.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/)

# Bitmap.GetEmptyMask Method 
 
Returns grayscale image of the same size as current bitmap filled with black color. It can be used as mask template for transforms.
 
**Namespace:** [Aurigma.GraphicsMill](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Function GetEmptyMask As Bitmap
```
 
```csharp
public Bitmap GetEmptyMask()
```
 
### Return Value
 [Bitmap](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md) object which can be used as a template for a mask for using transforms on current bitmap.
 
## Remarks
 Using this method you can get a template for a mask. Initially it is filled with black pixels (i.e. mask is absolutely transparent). After that you draw something on this mask (white color means opaque areas) and use it with transforms derived from [MaskedBitmapTransform](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Transforms_MaskedBitmapTransform.htm.md) class.
   
## See Also

### Reference

- [Bitmap Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Bitmap.htm.md)
- [Aurigma.GraphicsMill Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill.htm.md)
