The Graphics type exposes the following members.
Name | Description | |
---|---|---|
Clear |
Clears the entire drawing surface and fills it with the specified background color. |
|
Dispose |
Releases all resources used by this Graphics. |
|
DrawArc | Overloaded. Draws an arc. |
|
DrawBezier | Overloaded. | |
DrawBeziers |
Draws a series of Bezier splines from an array of Point structures. |
|
DrawEllipse | Overloaded. | |
DrawFormattedText | Overloaded. Draws the specified text in the specified rectangle according to its markup. |
|
DrawImage | Overloaded. Draws the specified Bitmap. |
|
DrawLine | Overloaded. Draws a line connecting the two points. |
|
DrawLines |
Draws a series of line segments that connect an array of Point structures. |
|
DrawPie | Overloaded. Draws a pie shape defined by an ellipse and two radial lines. |
|
DrawPolygon |
Draws a polygon defined by an array of Point structures. |
|
DrawRectangle | Overloaded. Draws a rectangle. |
|
DrawString | Overloaded. Draws the specified text string at the specified location. |
|
DrawText | Overloaded. Draws the specified text in the specified rectangle taking into account its line breaks and justification. |
|
Equals | (Inherited from Object.) | |
ExcludeClip | Overloaded. Updates the clip region of this Graphics by excluding a given area. |
|
FillEllipse | Overloaded. Fills the interior of an ellipse defined by a bounding rectangle. |
|
FillPie | Overloaded. Fills the interior of a pie section defined by an ellipse and two radial lines. |
|
FillPolygon | Overloaded. Fills the interior of a polygon defined by an array of points. |
|
FillRectangle | Overloaded. Fills the interior of a rectangle. |
|
Finalize | (Inherited from Object.) | |
FromHdc |
Creates a new Graphics from the specified handle to a device context. |
|
FromHwnd |
Creates a new Graphics from the specified handle to a window. |
|
GetDC |
Gets the handle to the device context associated with this Graphics. |
|
GetHashCode | (Inherited from Object.) | |
GetPixel |
Gets the color of the specified pixel. |
|
GetType | (Inherited from Object.) | |
IntersectClip | Overloaded. Updates the clip region of this Graphics to the intersection of the current clip region and the specified one. |
|
MeasureFormattedText | Overloaded. Measures the specified formatted test when drawn with the specified Font within the specified region. |
|
MeasureString |
Measures the specified string when drawn with the specified Font. |
|
MeasureText | Overloaded. Measures the specified test when drawn with the specified Font within the specified region. |
|
MemberwiseClone | (Inherited from Object.) | |
ResetClip |
Resets the clip region of this Graphics to an infinite region. |
|
SetClip | Overloaded. Sets the clipping region of this Graphics. |
|
SetPixel |
Sets the color of the specified pixel. |
|
ToString | (Inherited from Object.) | |
TranslateClip |
Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions. |
Name | Description | |
---|---|---|
Clip |
Gets a Region that limits the drawing region of this Graphics. |
|
ClipBounds |
Gets a RectangleF structure that bounds the clipping region of this Graphics. |
|
DpiX |
Gets the horizontal resolution of the drawing surface (in pixels per inch). |
|
DpiY |
Gets the vertical resolution of the drawing surface (in pixels per inch). |
|
Height |
Gets a height of the drawing surface (in pixels). |
|
IsClipEmpty |
Gets a value indicating whether the clipping region of this Graphics is empty. |
|
IsClipInfinite |
Gets a value indicating whether the clipping region is larger than a drawing surface. |
|
Mode |
Gets the value that specifies whether the Graphics where opened at HDC or Bitmap. |
|
Transform |
Gets or sets a copy of the geometric world transformation for this Graphics. |
|
Width |
Gets a width of the drawing surface (in pixels). |