Graphics Methods |
The Graphics type exposes the following members.
Name | Description | |
---|---|---|
Clear(Color) |
Resets all pixels in the ClipBounds region with the specified color | |
Clear(SolidBrush) |
Resets all pixels in the ClipBounds region with the specified brush | |
DrawArc(Color, RectangleF, Single, Single) |
Draws a 1 pixel wide arc with the specified color | |
DrawArc(Pen, RectangleF, Single, Single) |
Draws an arc with the specified pen | |
DrawArc(Color, Single, Single, Single, Single, Single, Single) |
Draws a 1 pixel wide arc with the specified color | |
DrawArc(Pen, Single, Single, Single, Single, Single, Single) |
Draws an arc with the specified pen | |
DrawEllipse(Color, RectangleF) |
Draws a 1 pixel wide ellipse outline with the specified color | |
DrawEllipse(Pen, RectangleF) |
Draws an ellipse outline with the specified pen | |
DrawEllipse(Color, Single, Single, Single, Single) |
Draws a 1 pixel wide ellipse outline with the specified color | |
DrawEllipse(Pen, Single, Single, Single, Single) |
Draws an ellipse with the specified pen | |
DrawImage(Image, PointF) |
Draws the specified image at a location with no scaling
| |
DrawImage(Image, RectangleF) |
Draws the specified image in a rectangle
| |
DrawImage(Image, RectangleF, PointF) |
Draws the source portion of an image, scaling to the specified destination | |
DrawImage(Image, RectangleF, RectangleF) |
Draws the source portion of an image, scaling to the specified destination | |
DrawImage(Image, Single, Single) |
Draws the specified image at a location with no scaling
| |
DrawImage(Image, Single, Single, Single, Single) |
Draws the specified image in a rectangle
| |
DrawInsetRectangle |
Draws an rectangle with colors on the top/left and bottom/right with the given width | |
DrawLine(Color, PointF, PointF) |
Draws a 1 pixel wide line with the specified color | |
DrawLine(Pen, PointF, PointF) |
Draws a line with the specified pen | |
DrawLine(Color, Single, Single, Single, Single) |
Draws a 1 pixel wide line with the specified color | |
DrawLine(Pen, Single, Single, Single, Single) |
Draws a line with the specified pen | |
DrawLines(Color, PointF) |
Draws a 1 pixel wide set of lines with the specified points | |
DrawLines(Color, IEnumerablePointF) |
Draws a 1 pixel wide set of lines with the specified points | |
DrawLines(Pen, PointF) |
Draws a set of lines with the specified points | |
DrawLines(Pen, IEnumerablePointF) |
Draws a set of lines with the specified points | |
DrawPath(Color, IGraphicsPath) |
Draws a 1 pixel outline of the specified path | |
DrawPath(Pen, IGraphicsPath) |
Draws the specified path | |
DrawPolygon(Color, PointF) |
Draws a 1 pixel wide outline of a polygon with the specified points | |
DrawPolygon(Pen, PointF) |
Draws an outline of a polygon with the specified points | |
DrawRectangle(Color, RectangleF) |
Draws a 1 pixel wide outline of a rectangle with the specified color | |
DrawRectangle(Pen, RectangleF) |
Draws a rectangle
| |
DrawRectangle(Color, Single, Single, Single, Single) |
Draws a 1 pixel wide outline of a rectangle with the specified color | |
DrawRectangle(Pen, Single, Single, Single, Single) |
Draws a rectangle
| |
DrawText(FormattedText, PointF) |
Draws formatted text at the specified location
| |
DrawText(Font, Brush, PointF, String) |
Draws text with the specified font, brush and location
| |
DrawText(Font, Color, PointF, String) |
Draws text with the specified font, color and location
| |
DrawText(Font, SolidBrush, PointF, String) |
Draws text with the specified font, brush and location
| |
DrawText(Font, Brush, Single, Single, String) |
Draws text with the specified font, brush and location
| |
DrawText(Font, Color, Single, Single, String) |
Draws text with the specified font, color and location
| |
DrawText(Font, SolidBrush, Single, Single, String) |
Draws text with the specified font, brush and location
| |
DrawText(Font, Brush, RectangleF, String, FormattedTextWrapMode, FormattedTextAlignment, FormattedTextTrimming) |
Draws text in a rectangle with the specified formatted text trimming
| |
FillEllipse(Brush, RectangleF) |
Fills an ellipse with the specified brush | |
FillEllipse(Color, RectangleF) |
Fills an ellipse with the specified color | |
FillEllipse(Brush, Single, Single, Single, Single) |
Fills an ellipse with the specified brush | |
FillEllipse(Color, Single, Single, Single, Single) |
Fills an ellipse with the specified color | |
FillPath(Brush, IGraphicsPath) |
Fills the specified path | |
FillPath(Color, IGraphicsPath) |
Fills the specified path | |
FillPie(Brush, RectangleF, Single, Single) |
Fills a pie with the specified brush | |
FillPie(Color, RectangleF, Single, Single) |
Fills a pie with the specified color | |
FillPie(Brush, Single, Single, Single, Single, Single, Single) |
Fills a pie with the specified brush | |
FillPie(Color, Single, Single, Single, Single, Single, Single) |
Fills a pie with the specified color | |
FillPolygon(Brush, PointF) |
Fills a polygon defined by points with the specified brush | |
FillPolygon(Color, PointF) |
Fills a polygon defined by points with the specified color | |
FillRectangle(Brush, RectangleF) |
Fills a rectangle with the specified brush | |
FillRectangle(Color, RectangleF) |
Fills a rectangle with the specified color | |
FillRectangle(Brush, Single, Single, Single, Single) |
Fills a rectangle with the specified brush | |
FillRectangle(Color, Single, Single, Single, Single) |
Fills a rectangle with the specified color | |
FillRectangles(Brush, IEnumerableRectangleF) |
Fills the specified rectangles | |
FillRectangles(Color, IEnumerableRectangleF) |
Fills the specified rectangles | |
Flush |
Flushes the drawing (for some platforms)
| |
IsVisible |
Returns true if the clip region intersects
the specified rectangle.
| |
MeasureString |
Measures the string with the given font | |
MultiplyTransform |
Multiplies the co-ordinate system with the given matrix | |
ResetClip |
Resets the clip bounds to encompass the entire drawing area
| |
RestoreTransform |
Restores the transform state
| |
RotateTransform |
Rotates the co-ordinate system by the given angle | |
SaveTransform |
Saves the current transform state
| |
SaveTransformState |
Gets an object that will restore to the current transform state when disposed.
| |
ScaleTransform(Single) |
Scales the co-ordinate system by a factor
| |
ScaleTransform(SizeF) |
Scales the co-ordinate system by a factor
| |
ScaleTransform(Single, Single) |
Scales the co-ordinate system by a factor
| |
SetClip(IGraphicsPath) |
Sets the clip region to the specified path | |
SetClip(RectangleF) |
Sets the clip region to the specified rectangle | |
TranslateTransform(PointF) |
Translates the origin of the co-ordinate system by the given offset
| |
TranslateTransform(Single, Single) |
Translates the origin of the co-ordinate system by the given offset
|