This documentation is for the old version. Go to the latest Graphics Mill docs

BitmapData.GetEmptyMask Method

Returns grayscale image of the same size as current bitmap data filled with black color. It can be used as mask template for transforms.

Namespace: Aurigma.GraphicsMill
Assembly: Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)


Visual Basic
Public Function GetEmptyMask As Bitmap
public Bitmap GetEmptyMask()

Return Value

Bitmap object which can be used as a template for a mask for using transforms on current bitmap data.


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 class.

See Also