Class Graphics

Graphics class

Encapsulates drawing surface.

public class Graphics : IDisposable

Properties

NameDescription
Clip { get; set; }Gets or sets a Region that limits the drawing region of this Graphics.
ClipBounds { get; }Gets a RectangleF structure that bounds the clipping region of this Graphics.
CompositingMode { get; set; }Gets or sets a value that specifies how composited images are drawn to this Graphics.
CompositingQuality { get; set; }Gets or sets the rendering quality of composited images drawn to this Graphics.
DpiX { get; }Gets the horizontal resolution of this Graphics.
DpiY { get; }Gets the vertical resolution of this Graphics.
InterpolationMode { get; set; }Gets or sets the interpolation mode associated with this Graphics.
IsClipEmpty { get; }Gets a value indicating whether the clipping region of this Graphics is empty.
IsVisibleClipEmpty { get; }Gets a value indicating whether the visible clipping region of this Graphics is empty.
PageScale { get; set; }Gets or sets the scaling between world units and page units for this Graphics.
PageUnit { get; set; }Gets or sets the unit of measure used for page coordinates in this Graphics.
PixelOffsetMode { get; set; }Gets or sets a value specifying how pixels are offset during rendering of this Graphics.
RenderingOrigin { get; set; }Gets or sets the rendering origin of this Graphics for dithering and for hatch brushes.
SmoothingMode { get; set; }Gets or sets the rendering quality for this Graphics.
TextContrast { get; set; }Gets or sets the gamma correction value for rendering text.
TextRenderingHint { get; set; }Gets or sets the rendering mode for text associated with this Graphics.
Transform { get; set; }Gets or sets a copy of the geometric world transformation for this Graphics.
VisibleClipBounds { get; }Gets the bounding rectangle of the visible clipping region of this Graphics.

Methods

NameDescription
static FromHwnd(IntPtr)Creates a new Graphics from the specified handle to a window.
static FromImage(Image)Creates a new Graphics from the specified Image.
AddMetafileComment(byte[])Adds a comment to the current Metafile.
BeginContainer()Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.
BeginContainer(Rectangle, Rectangle, GraphicsUnit)Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
BeginContainer(RectangleF, RectangleF, GraphicsUnit)Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container with the specified scale transformation.
Clear(Color)Clears the entire drawing surface and fills it with the specified background color.
CopyFromScreen(Point, Point, Size)Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.
CopyFromScreen(Point, Point, Size, CopyPixelOperation)Performs a bit-block transfer of color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.
CopyFromScreen(int, int, int, int, Size, CopyPixelOperation)Performs a bit-block transfer of the color data, corresponding to a rectangle of pixels, from the screen to the drawing surface of the Graphics.
Dispose()Releases all resources used by this Graphics.
DrawArc(Pen, RectangleF, float, float)Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
DrawArc(Pen, float, float, float, float, float, float)Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
DrawBezier(Pen, PointF, PointF, PointF, PointF)Draws a Bézier spline defined by four PointF structures.
DrawBezier(Pen, float, float, float, float, float, float, float, float)Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
DrawBeziers(Pen, PointF[])Draws a series of Bézier splines from an array of Point structures.
DrawBeziers(Pen, Point[])Draws a series of Bézier splines from an array of PointF structures.
DrawClosedCurve(Pen, PointF[])Draws a closed cardinal spline defined by an array of PointF structures.
DrawClosedCurve(Pen, Point[])Draws a closed cardinal spline defined by an array of Point structures.
DrawClosedCurve(Pen, PointF[], float, FillMode)Draws a closed cardinal spline defined by an array of PointF structures using a specified tension.
DrawClosedCurve(Pen, Point[], float, FillMode)Draws a closed cardinal spline defined by an array of Point structures using a specified tension.
DrawCurve(Pen, PointF[])Draws a cardinal spline through a specified array of PointF structures.
DrawCurve(Pen, Point[])Draws a cardinal spline through a specified array of Point structures.
DrawCurve(Pen, PointF[], float)Draws a cardinal spline through a specified array of PointF structures using a specified tension.
DrawCurve(Pen, Point[], float)Draws a cardinal spline through a specified array of Point structures using a specified tension.
DrawCurve(Pen, PointF[], int, int)Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array.
DrawCurve(Pen, PointF[], int, int, float)Draws a cardinal spline through a specified array of PointF structures using a specified tension. The drawing begins offset from the beginning of the array.
DrawCurve(Pen, Point[], int, int, float)Draws a cardinal spline through a specified array of Point structures using a specified tension. The drawing begins offset from the beginning of the array.
DrawEllipse(Pen, RectangleF)Draws an ellipse defined by a bounding RectangleF.
DrawEllipse(Pen, float, float, float, float)Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
DrawIcon(Icon, Rectangle)Draws the image represented by the specified Icon within the area specified by a Rectangle structure.
DrawIcon(Icon, int, int)Draws the image represented by the specified Icon at the specified coordinates.
DrawIconUnstretched(Icon, Rectangle)Draws the image represented by the specified Icon without scaling the image.
DrawImage(Image, Point)Draws the specified Image, using its original physical size, at the specified location.
DrawImage(Image, PointF)Draws the specified Image, using its original physical size, at the specified location.
DrawImage(Image, PointF[])Draws the specified Image at the specified location and with the specified shape and size.
DrawImage(Image, Point[])Draws the specified Е:Image at the specified location and with the specified shape and size.
DrawImage(Image, Rectangle)Draws the specified Image at the specified location and with the specified size.
DrawImage(Image, RectangleF)Draws the specified Image at the specified location and with the specified size.
DrawImage(Image, float, float)Draws the specified Image, using its original physical size, at the specified location.
DrawImage(Image, int, int)Draws the specified image, using its original physical size, at the location specified by a coordinate pair.
DrawImage(Image, PointF[], RectangleF, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Point[], Rectangle, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Rectangle, Rectangle, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, RectangleF, RectangleF, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, float, float, float, float)Draws the specified Image, using its original physical size, at the specified location and with the specified size.
DrawImage(Image, float, float, RectangleF, GraphicsUnit)Draws a portion of an image at a specified location.
DrawImage(Image, int, int, int, int)Draws the specified Image at the specified location and with the specified size.
DrawImage(Image, int, int, Rectangle, GraphicsUnit)Draws a portion of an image at a specified location.
DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Rectangle, float, float, float, float, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImage(Image, Rectangle, int, int, int, int, GraphicsUnit, ImageAttributes)Draws the specified portion of the specified Image at the specified location and with the specified size.
DrawImageUnscaled(Image, Point)Draws a specified image using its original physical size at a specified location.
DrawImageUnscaled(Image, Rectangle)Draws a specified image using its original physical size at a specified location.
DrawImageUnscaled(Image, int, int)Draws the specified image using its original physical size at the location specified by a coordinate pair.
DrawImageUnscaled(Image, int, int, int, int)Draws the specified image using its original physical size at the location specified by a coordinate pair.
DrawImageUnscaledAndClipped(Image, Rectangle)Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
DrawLine(Pen, Point, Point)Draws a line connecting two Point structures.
DrawLine(Pen, PointF, PointF)Draws a line connecting two PointF structures.
DrawLine(Pen, float, float, float, float)Draws a line connecting the two points specified by the coordinate pairs.
DrawLine(Pen, int, int, int, int)Draws a line connecting the two points specified by the coordinate pairs.
DrawLines(Pen, PointF[])Draws a series of line segments that connect an array of PointF structures.
DrawLines(Pen, Point[])Draws a series of line segments that connect an array of Point structures.
DrawPath(Pen, GraphicsPath)Draws a GraphicsPath.
DrawPie(Pen, RectangleF, float, float)Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
DrawPie(Pen, float, float, float, float, float, float)Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
DrawPolygon(Pen, PointF[])Draws a polygon defined by an array of PointF structures.
DrawPolygon(Pen, Point[])Draws a polygon defined by an array of Point structures.
DrawRectangle(Pen, Rectangle)Draws a rectangle specified by a Rectangle structure.
DrawRectangle(Pen, float, float, float, float)Draws a rectangle specified by a coordinate pair, a width, and a height.
DrawRectangle(Pen, int, int, int, int)Draws a rectangle specified by a coordinate pair, a width, and a height.
DrawRectangles(Pen, RectangleF[])Draws a series of rectangles specified by RectangleF structures.
DrawRectangles(Pen, Rectangle[])Draws a series of rectangles specified by Rectangle structures.
DrawString(string, Font, Brush, PointF)Draws the specified text string at the specified location with the specified Brush and Font objects.
DrawString(string, Font, Brush, RectangleF)Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
DrawString(string, Font, Brush, float, float)Draws the specified text string at the specified location with the specified Brush and Font objects.
DrawString(string, Font, Brush, PointF, StringFormat)Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
DrawString(string, Font, Brush, RectangleF, StringFormat)Draws the specified text string in the specified rectangle with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
DrawString(string, Font, Brush, float, float, StringFormat)Draws the specified text string at the specified location with the specified Brush and Font objects using the formatting attributes of the specified StringFormat.
EndContainer(GraphicsContainer)Closes the current graphics container and restores the state of this Graphics to the state saved by a call to the BeginContainer method.
EnumerateMetafile(Metafile, Point, EnumerateMetafileProc)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF, EnumerateMetafileProc)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF[], EnumerateMetafileProc)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Point[], EnumerateMetafileProc)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Rectangle, EnumerateMetafileProc)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, RectangleF, EnumerateMetafileProc)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, Point, EnumerateMetafileProc, IntPtr)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF, EnumerateMetafileProc, IntPtr)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF[], EnumerateMetafileProc, IntPtr)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Point[], EnumerateMetafileProc, IntPtr)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Rectangle, EnumerateMetafileProc, IntPtr)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, RectangleF, EnumerateMetafileProc, IntPtr)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, Point, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, EnumerateMetafileProc)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, EnumerateMetafileProc)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF[], EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, EnumerateMetafileProc)Sends the records in a selected rectangle from a SMetafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Point[], EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, EnumerateMetafileProc)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Rectangle, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, EnumerateMetafileProc)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, RectangleF, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, EnumerateMetafileProc)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point.
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram.
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle.
EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display at a specified point using specified image attributes.
EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records in a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified parallelogram using specified image attributes.
EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, EnumerateMetafileProc, IntPtr, ImageAttributes)Sends the records of a selected rectangle from a Metafile, one at a time, to a callback method for display in a specified rectangle using specified image attributes.
ExcludeClip(Rectangle)Updates the clip region of this Graphics to exclude the area specified by a Rectangle
ExcludeClip(Region)Updates the clip region of this Graphics to exclude the area specified by a Region.
FillClosedCurve(Brush, PointF[])Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.
FillClosedCurve(Brush, Point[])Fills the interior of a closed cardinal spline curve defined by an array of Point structures.
FillClosedCurve(Brush, PointF[], FillMode)Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode.
FillClosedCurve(Brush, Point[], FillMode)Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.
FillClosedCurve(Brush, PointF[], FillMode, float)Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.
FillClosedCurve(Brush, Point[], FillMode, float)Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode.
FillEllipse(Brush, RectangleF)Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
FillEllipse(Brush, float, float, float, float)Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
FillPath(Brush, GraphicsPath)Fills the interior of a GraphicsPath.
FillPie(Brush, Rectangle, float, float)Fills the interior of a pie section defined by an ellipse specified by a Rectangle structure and two radial lines.
FillPie(Brush, float, float, float, float, float, float)Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines.
FillPie(Brush, int, int, int, int, int, int)Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, a height, and two radial lines.
FillPolygon(Brush, PointF[])Fills the interior of a polygon defined by an array of points specified by PointF structures.
FillPolygon(Brush, Point[])Fills the interior of a polygon defined by an array of points specified by Point structures.
FillPolygon(Brush, PointF[], FillMode)Fills the interior of a polygon defined by an array of points specified by PointF structures using the specified fill mode.
FillPolygon(Brush, Point[], FillMode)Fills the interior of a polygon defined by an array of points specified by Point structures using the specified fill mode.
FillRectangle(Brush, RectangleF)Fills the interior of a rectangle specified by a RectangleF structure.
FillRectangle(Brush, float, float, float, float)Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
FillRectangles(Brush, RectangleF[])Fills the interiors of a series of rectangles specified by RectangleF structures.
FillRectangles(Brush, Rectangle[])Fills the interiors of a series of rectangles specified by Rectangle structures.
FillRegion(Brush, Region)Fills the interior of a Region.
Flush()Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
Flush(FlushIntention)Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.
GetHdc()Gets the handle to the device context associated with this Graphics.
GetNearestColor(Color)Gets the nearest color to the specified Color structure.
IntersectClip(Rectangle)Updates the clip region of this Graphics to the intersection of the current clip region and the specified Rectangle structure.
IntersectClip(RectangleF)Updates the clip region of this Graphics to the intersection of the current clip region and the specified RectangleF structure.
IntersectClip(Region)Updates the clip region of this Graphics to the intersection of the current clip region and the specified Region.
IsVisible(Point)Indicates whether the specified Point structure is contained within the visible clip region of this Graphics.
IsVisible(PointF)Indicates whether the specified PointF structure is contained within the visible clip region of this Graphics.
IsVisible(Rectangle)Indicates whether the rectangle specified by a Rectangle structure is contained within the visible clip region of this Graphics.
IsVisible(RectangleF)Indicates whether the rectangle specified by a RectangleF structure is contained within the visible clip region of this Graphics.
IsVisible(float, float)Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
IsVisible(int, int)Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
IsVisible(float, float, float, float)Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this Graphics.
IsVisible(int, int, int, int)Indicates whether the rectangle specified by a pair of coordinates, a width, and a height is contained within the visible clip region of this Graphics.
MeasureCharacterRanges(string, Font, RectangleF, StringFormat)Gets an array of Region objects, each of which bounds a range of character positions within the specified string.
MeasureString(string, Font)Measures the specified string when drawn with the specified Font.
MeasureString(string, Font, int)Measures the specified string when drawn with the specified Font.
MeasureString(string, Font, SizeF)Measures the specified string when drawn with the specified Font.
MeasureString(string, Font, int, StringFormat)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
MeasureString(string, Font, PointF, StringFormat)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
MeasureString(string, Font, SizeF, StringFormat)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
MeasureString(string, Font, SizeF, StringFormat, out int, out int)Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
MultiplyTransform(Matrix)Multiplies the world transformation of this Graphics and specified the Matrix.
MultiplyTransform(Matrix, MatrixOrder)Multiplies the world transformation of this Graphics and specified the Matrix in the specified order.
ReleaseHdc()Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.
ReleaseHdc(IntPtr)Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.
ResetClip()Resets the clip region of this Graphics to an infinite region.
ResetTransform()Resets the world transformation matrix of this Graphics to the identity matrix.
Restore(GraphicsState)Restores the state of this Graphics to the state represented by a GraphicsState.
RotateTransform(float)Applies the specified rotation to the transformation matrix of this Graphics.
RotateTransform(float, MatrixOrder)Applies the specified rotation to the transformation matrix of this Graphics in the specified order.
Save()Saves the current state of this Graphics and identifies the saved state with a GraphicsState.
ScaleTransform(float, float)Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object’s transformation matrix.
ScaleTransform(float, float, MatrixOrder)Applies the specified scaling operation to the transformation matrix of this Graphics in the specified order.
SetClip(Graphics)Sets the clipping region of this Graphics to the Clip property of the specified Graphics
SetClip(GraphicsPath)Sets the clipping region of this Graphics to the specified GraphicsPath .
SetClip(Rectangle)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.
SetClip(RectangleF)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure.
SetClip(Graphics, CombineMode)Sets the clipping region of this Graphics to the result of the specified combining operation of the current clip region and the Clip property of the specified Graphics.
SetClip(GraphicsPath, CombineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified GraphicsPath.
SetClip(Rectangle, CombineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.
SetClip(RectangleF, CombineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure.
SetClip(Region, CombineMode)Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified Region.
TransformPoints(CoordinateSpace, CoordinateSpace, PointF[])Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.
TransformPoints(CoordinateSpace, CoordinateSpace, Point[])Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.
TranslateClip(float, float)Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
TranslateClip(int, int)Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
TranslateTransform(float, float)Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.
TranslateTransform(float, float, MatrixOrder)Changes the origin of the coordinate system by applying the specified translation to the transformation matrix of this Graphics in the specified order.

Other Members

NameDescription
delegate DrawImageAbortProvides a callback method for deciding when the DrawImage method should prematurely cancel execution and stop drawing an image.
delegate EnumerateMetafileProcProvides a callback method for the EnumerateMetafile method.

See Also