Graphics Members

The Graphics type exposes the following members.

Methods

Name Description
Public method Clear

Clears the entire drawing surface and fills it with the specified background color.

Public method CreateFont Overloaded.

Returns the Font instance with the given parameters if such font is presented in this Graphics.FontRegistry.

Public method Dispose

Releases all resources used by this Graphics.

Public method DrawBezier Overloaded.

Draws a Bezier spline.

Public method DrawBeziers

Draws a sequence of Bezier curves defined by an array of PointF structures.

Public method DrawContainer

Draws the specified GraphicsContainer at the location specified by the coordinate pair.

Public method DrawEllipse Overloaded.

Draws an ellipse.

Public method DrawEllipses

Draws a number of ellipses defined by an array of RectangleF structures representing bounding boxes.

Public method DrawImage Overloaded.

Draws the specified image on the Graphics.

Public method DrawLine Overloaded.

Draws a line connecting the two points.

Public method DrawLines

Draws a series of line segments that connect number of points defined by an array of PointF structures.

Public method DrawPath

Draws a path defined by a Path instance.

Public method DrawPolygon

Draws a polygon defined by an array of PointF structures.

Public method DrawRectangle Overloaded.

Draws a rectangle.

Public method DrawRectangles

Draws a number of rectangles specified by an array of RectangleF structures.

Public method DrawText

Draws a text.

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

Fills the interior of a Bezier curve.

Public method FillBeziers

Fills the interior of a sequence of Bezier curves defined by an array of PointF structures.

Public method FillEllipse Overloaded.

Fills the interior of an ellipse defined by a bounding rectangle.

Public method FillEllipses

Fills the interior of a number of ellipses defined by an array of RectangleF structures representing bounding boxes.

Public method FillPath

Draws a path defined by a Path instance.

Public method FillPolygon

Fills the interior of a polygon defined by an array of PointF structures.

Public method FillRectangle Overloaded.

Fills the interior of a rectangle.

Public method FillRectangles

Fills the interior of a number of rectangles specified by an array of RectangleF structures.

Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Properties

Name Description
Public property BlendMode

Gets or sets blending modes.

Public property ClippingPaths

Gets or sets the collection of clipping paths for this Graphics.

Public property DpiX

Gets the horizontal resolution of the drawing surface (in pixels per inch).

Public property DpiY

Gets the vertical resolution of the drawing surface (in pixels per inch).

Public property FillingRule

Specifies a filling rule for a path.

Public property FontRegistry

Gets or sets a FontRegistry associated with this Graphics.

Public property Height

Gets a height of the drawing surface (in pixels).

Public property Overprint

Gets or sets the overprint mode.

Public property Transform

Gets or sets a transformation matrix for this Graphics.

Public property Transparency

Gets or sets the transparency for this Graphics.

Public property Width

Gets a width of the drawing surface (in pixels).

Events

Name Description
Public event BeforeDrawImage

Occurs when you draw a bitmap in the graphics container.

Public event BeforeDrawPath

Occurs when you draw a path in the graphics container.

See Also

Reference