Method Dispose Dispose() Disposes the MaskImage resource. It's important to call this method to release the memory resources when the mask is no longer needed. Declaration public void Dispose() Implements IDisposable.Dispose()