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

GdiGraphics Methods

The GdiGraphics type exposes the following members.

Methods

Name Description
Public method {dtor}

Enables using delete operator in C++ applications. It is strongly not recommended to use it directly.

Public method Clear

Clears the drawing surface and fills it with specified color.

Public method Dispose

Releases all resources used by this GdiGraphics.

(Overrides LockableObject.Dispose().)
Public method DrawArc Overloaded.

Draws an arc.

Public method DrawBezier Overloaded.

Draws a cubic Bezier spline.

Public method DrawBeziers Overloaded.

Draws a sequence of connected Bezier splines.

Public method DrawEllipse Overloaded.

Draws an ellipse.

Public method DrawFormattedText Overloaded.

Draws formatted text according to its markup.

Public method DrawImage Overloaded.

Draws a Bitmap object.

Public method DrawLine Overloaded.

Draws a line.

Public method DrawLines Overloaded.

Draws a polyline.

Public method DrawPie Overloaded.

Draws a pie shape.

Public method DrawPolygon Overloaded.

Draws a polygon.

Public method DrawRectangle Overloaded.

Draws a rectangle.

Public method DrawString Overloaded.

Draws a text string.

Public method DrawText Overloaded.

Draws text in the specified rectangle taking into account its paragraphs and justification.

Public method Equals (Inherited from Object.)
Public method ExcludeClip Overloaded.

Updates the clip region of this GdiGraphics by excluding given area.

Public method FillEllipse Overloaded.

Fills an ellipse.

Public method FillPie Overloaded.

Fills a pie shape.

Public method FillPolygon Overloaded.

Fills a polygon.

Public method FillRectangle Overloaded.

Fills a rectangle.

Public method FloodFill Overloaded.

Fills an arbitrary area with the specified color

Public method Static member FromHdc

Returns a GdiGraphics object associated with the specified device context.

Public method Static member FromHwnd

Returns a GdiGraphics object associated with the specified window handle.

Public method GetHashCode (Inherited from Object.)
Public method GetHdc

Gets the handle to the device context (HDC) associated with this GdiGraphics object.

Public method GetPixel

Gets a color of a pixel at specified coordinates.

Public method GetType (Inherited from Object.)
Public method HorizontalPixelsToUnits

Converts horizontal value from pixels to unit specified in Unit property.

(Inherited from UnitConverterObject.)
Public method HorizontalUnitsToPixels

Converts horizontal value from unit specified in Unit property to pixels.

(Inherited from UnitConverterObject.)
Public method IntersectClip Overloaded.

Updates the clip region of this GdiGraphics by intersecting it with given rectangular area or Region.

Public method Lock

Locks the object.

(Overrides LockableObject.Lock().)
Protected method MemberwiseClone (Inherited from Object.)
Public method ResetClip

Resets clipping region for this GdiGraphics class instance by setting it to infinite region (which absorbs this drawing surface).

Public method SetClip Overloaded.

Sets clipping region for this GdiGraphics object.

Public method SetPixel

Writes a color of a pixel at specified coordinates.

Public method ToString (Inherited from Object.)
Public method TranslateClip Overloaded.

Shifts the clipping region by given horizontal and vertical offset.

Public method Unlock

Unlocks the object previously locked with method Lock().

(Overrides LockableObject.Unlock().)
Public method VerticalPixelsToUnits

Converts vertical value from pixels to unit specified in Unit property.

(Inherited from UnitConverterObject.)
Public method VerticalUnitsToPixels

Converts vertical value from unit specified in Unit property to pixels.

(Inherited from UnitConverterObject.)

See Also

Reference