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

GdiGraphics Constructor

Creates and initializes GdiGraphics class instance associated with Bitmap object.

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

Syntax

Visual Basic
Public Sub New ( _
	bitmap As Bitmap _
)
C#
public GdiGraphics(
	Bitmap bitmap
)

Parameters

bitmap

Type: Aurigma.GraphicsMill.Bitmap

Bitmap object to associate this GdiGraphics with.

Remarks

You cannot create several GdiGraphics instances associated with the same Bitmap. If the bitmap argument is already used with some GdiGraphics, this constructor will fails. To release the bitmap from the GdiGraphics, you should dispose it.

If you dispose the bitmap earlier than this GdiGraphics instance, you will not be able to use it.

See Also

Reference