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

Bitmap.Dispose Method

Releases all resources used by this Bitmap.

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

Syntax

Visual Basic
Public Overrides Sub Dispose
C#
public override void Dispose()

Examples

Visual Basic
Dim oldBitmap As Aurigma.GraphicsMill.Bitmap = BitmapViewer1.Bitmap
BitmapViewer1.Bitmap = newBitmap
oldBitmap.Dispose()
C#
Aurigma.GraphicsMill.Bitmap oldBitmap = BitmapViewer1.Bitmap;
BitmapViewer1.Bitmap = newBitmap;
oldBitmap.Dispose();

See Also

Reference