Export (0) Print
Expand All

Graphics Methods

The Graphics type exposes the following members.

  Name Description
Public method AddMetafileComment Adds a comment to the current Metafile.
Public method BeginContainer() Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.
Public method 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.
Public method 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.
Public method Clear Clears the entire drawing surface and fills it with the specified background color.
Public method 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.
Public method 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.
Public method CopyFromScreen(Int32, Int32, Int32, Int32, Size) 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.
Public method CopyFromScreen(Int32, Int32, Int32, Int32, 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.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Releases all resources used by this Graphics.
Public method DrawArc(Pen, Rectangle, Single, Single) Draws an arc representing a portion of an ellipse specified by a Rectangle structure.
Public method DrawArc(Pen, RectangleF, Single, Single) Draws an arc representing a portion of an ellipse specified by a RectangleF structure.
Public method DrawArc(Pen, Int32, Int32, Int32, Int32, Int32, Int32) Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
Public method DrawArc(Pen, Single, Single, Single, Single, Single, Single) Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
Public method DrawBezier(Pen, Point, Point, Point, Point) Draws a Bézier spline defined by four Point structures.
Public method DrawBezier(Pen, PointF, PointF, PointF, PointF) Draws a Bézier spline defined by four PointF structures.
Public method DrawBezier(Pen, Single, Single, Single, Single, Single, Single, Single, Single) Draws a Bézier spline defined by four ordered pairs of coordinates that represent points.
Public method DrawBeziers(Pen, Point[]) Draws a series of Bézier splines from an array of Point structures.
Public method DrawBeziers(Pen, PointF[]) Draws a series of Bézier splines from an array of PointF structures.
Public method DrawClosedCurve(Pen, Point[]) Draws a closed cardinal spline defined by an array of Point structures.
Public method DrawClosedCurve(Pen, PointF[]) Draws a closed cardinal spline defined by an array of PointF structures.
Public method DrawClosedCurve(Pen, Point[], Single, FillMode) Draws a closed cardinal spline defined by an array of Point structures using a specified tension.
Public method DrawClosedCurve(Pen, PointF[], Single, FillMode) Draws a closed cardinal spline defined by an array of PointF structures using a specified tension.
Public method DrawCurve(Pen, Point[]) Draws a cardinal spline through a specified array of Point structures.
Public method DrawCurve(Pen, PointF[]) Draws a cardinal spline through a specified array of PointF structures.
Public method DrawCurve(Pen, Point[], Single) Draws a cardinal spline through a specified array of Point structures using a specified tension.
Public method DrawCurve(Pen, PointF[], Single) Draws a cardinal spline through a specified array of PointF structures using a specified tension.
Public method DrawCurve(Pen, PointF[], Int32, Int32) Draws a cardinal spline through a specified array of PointF structures. The drawing begins offset from the beginning of the array.
Public method DrawCurve(Pen, Point[], Int32, Int32, Single) Draws a cardinal spline through a specified array of Point structures using a specified tension.
Public method DrawCurve(Pen, PointF[], Int32, Int32, Single) 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.
Public method DrawEllipse(Pen, Rectangle) Draws an ellipse specified by a bounding Rectangle structure.
Public method DrawEllipse(Pen, RectangleF) Draws an ellipse defined by a bounding RectangleF.
Public method DrawEllipse(Pen, Int32, Int32, Int32, Int32) Draws an ellipse defined by a bounding rectangle specified by coordinates for the upper-left corner of the rectangle, a height, and a width.
Public method DrawEllipse(Pen, Single, Single, Single, Single) Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Public method DrawIcon(Icon, Rectangle) Draws the image represented by the specified Icon within the area specified by a Rectangle structure.
Public method DrawIcon(Icon, Int32, Int32) Draws the image represented by the specified Icon at the specified coordinates.
Public method DrawIconUnstretched Draws the image represented by the specified Icon without scaling the image.
Public method DrawImage(Image, Point) Draws the specified Image, using its original physical size, at the specified location.
Public method DrawImage(Image, Point[]) Draws the specified Image at the specified location and with the specified shape and size.
Public method DrawImage(Image, PointF) Draws the specified Image, using its original physical size, at the specified location.
Public method DrawImage(Image, PointF[]) Draws the specified Image at the specified location and with the specified shape and size.
Public method DrawImage(Image, Rectangle) Draws the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, RectangleF) Draws the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Int32, Int32) Draws the specified image, using its original physical size, at the location specified by a coordinate pair.
Public method DrawImage(Image, Single, Single) Draws the specified Image, using its original physical size, at the specified location.
Public method DrawImage(Image, Point[], Rectangle, GraphicsUnit) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, PointF[], RectangleF, GraphicsUnit) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Rectangle, GraphicsUnit) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, RectangleF, RectangleF, GraphicsUnit) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes) Draws the specified portion of the specified Image at the specified location.
Public method DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Int32, Int32, Rectangle, GraphicsUnit) Draws a portion of an image at a specified location.
Public method DrawImage(Image, Int32, Int32, Int32, Int32) Draws the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Single, Single, RectangleF, GraphicsUnit) Draws a portion of an image at a specified location.
Public method DrawImage(Image, Single, Single, Single, Single) Draws the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Point[], Rectangle, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort, Int32) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, PointF[], RectangleF, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort, Int32) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Int32, Int32, Int32, Int32, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort, IntPtr) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImage(Image, Rectangle, Single, Single, Single, Single, GraphicsUnit, ImageAttributes, Graphics.DrawImageAbort, IntPtr) Draws the specified portion of the specified Image at the specified location and with the specified size.
Public method DrawImageUnscaled(Image, Point) Draws a specified image using its original physical size at a specified location.
Public method DrawImageUnscaled(Image, Rectangle) Draws a specified image using its original physical size at a specified location.
Public method DrawImageUnscaled(Image, Int32, Int32) Draws the specified image using its original physical size at the location specified by a coordinate pair.
Public method DrawImageUnscaled(Image, Int32, Int32, Int32, Int32) Draws a specified image using its original physical size at a specified location.
Public method DrawImageUnscaledAndClipped Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
Public method DrawLine(Pen, Point, Point) Draws a line connecting two Point structures.
Public method DrawLine(Pen, PointF, PointF) Draws a line connecting two PointF structures.
Public method DrawLine(Pen, Int32, Int32, Int32, Int32) Draws a line connecting the two points specified by the coordinate pairs.
Public method DrawLine(Pen, Single, Single, Single, Single) Draws a line connecting the two points specified by the coordinate pairs.
Public method DrawLines(Pen, Point[]) Draws a series of line segments that connect an array of Point structures.
Public method DrawLines(Pen, PointF[]) Draws a series of line segments that connect an array of PointF structures.
Public method DrawPath Draws a GraphicsPath.
Public method DrawPie(Pen, Rectangle, Single, Single) Draws a pie shape defined by an ellipse specified by a Rectangle structure and two radial lines.
Public method DrawPie(Pen, RectangleF, Single, Single) Draws a pie shape defined by an ellipse specified by a RectangleF structure and two radial lines.
Public method DrawPie(Pen, Int32, Int32, Int32, Int32, Int32, Int32) Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Public method DrawPie(Pen, Single, Single, Single, Single, Single, Single) Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Public method DrawPolygon(Pen, Point[]) Draws a polygon defined by an array of Point structures.
Public method DrawPolygon(Pen, PointF[]) Draws a polygon defined by an array of PointF structures.
Public method DrawRectangle(Pen, Rectangle) Draws a rectangle specified by a Rectangle structure.
Public method DrawRectangle(Pen, Int32, Int32, Int32, Int32) Draws a rectangle specified by a coordinate pair, a width, and a height.
Public method DrawRectangle(Pen, Single, Single, Single, Single) Draws a rectangle specified by a coordinate pair, a width, and a height.
Public method DrawRectangles(Pen, Rectangle[]) Draws a series of rectangles specified by Rectangle structures.
Public method DrawRectangles(Pen, RectangleF[]) Draws a series of rectangles specified by RectangleF structures.
Public method DrawString(String, Font, Brush, PointF) Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, Font, Brush, RectangleF) Draws the specified text string in the specified rectangle with the specified Brush and Font objects.
Public method 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.
Public method 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.
Public method DrawString(String, Font, Brush, Single, Single) Draws the specified text string at the specified location with the specified Brush and Font objects.
Public method DrawString(String, Font, Brush, Single, Single, 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.
Public method EndContainer Closes the current graphics container and restores the state of this Graphics to the state saved by a call to the BeginContainer method.
Public method EnumerateMetafile(Metafile, Point, Graphics.EnumerateMetafileProc) Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
Public method EnumerateMetafile(Metafile, Point[], Graphics.EnumerateMetafileProc) Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
Public method EnumerateMetafile(Metafile, PointF, Graphics.EnumerateMetafileProc) Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
Public method EnumerateMetafile(Metafile, PointF[], Graphics.EnumerateMetafileProc) Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
Public method EnumerateMetafile(Metafile, Rectangle, Graphics.EnumerateMetafileProc) Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
Public method EnumerateMetafile(Metafile, RectangleF, Graphics.EnumerateMetafileProc) Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
Public method EnumerateMetafile(Metafile, Point, Graphics.EnumerateMetafileProc, IntPtr) Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
Public method EnumerateMetafile(Metafile, Point[], Graphics.EnumerateMetafileProc, IntPtr) Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
Public method EnumerateMetafile(Metafile, PointF, Graphics.EnumerateMetafileProc, IntPtr) Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
Public method EnumerateMetafile(Metafile, PointF[], Graphics.EnumerateMetafileProc, IntPtr) Sends the records in the specified Metafile, one at a time, to a callback method for display in a specified parallelogram.
Public method EnumerateMetafile(Metafile, Rectangle, Graphics.EnumerateMetafileProc, IntPtr) Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
Public method EnumerateMetafile(Metafile, RectangleF, Graphics.EnumerateMetafileProc, IntPtr) Sends the records of the specified Metafile, one at a time, to a callback method for display in a specified rectangle.
Public method EnumerateMetafile(Metafile, Point, Graphics.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.
Public method EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Point[], Graphics.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.
Public method EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF[], Graphics.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.
Public method EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Rectangle, Graphics.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.
Public method EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, RectangleF, Graphics.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.
Public method EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Point, Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Point[], Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF, RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, PointF[], RectangleF, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, Rectangle, Rectangle, GraphicsUnit, Graphics.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.
Public method EnumerateMetafile(Metafile, RectangleF, RectangleF, GraphicsUnit, Graphics.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.
Public method Equals(Object) Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public method ExcludeClip(Rectangle) Updates the clip region of this Graphics to exclude the area specified by a Rectangle structure.
Public method ExcludeClip(Region) Updates the clip region of this Graphics to exclude the area specified by a Region.
Public method FillClosedCurve(Brush, Point[]) Fills the interior of a closed cardinal spline curve defined by an array of Point structures.
Public method FillClosedCurve(Brush, PointF[]) Fills the interior of a closed cardinal spline curve defined by an array of PointF structures.
Public method 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.
Public method 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.
Public method FillClosedCurve(Brush, Point[], FillMode, Single) Fills the interior of a closed cardinal spline curve defined by an array of Point structures using the specified fill mode and tension.
Public method FillClosedCurve(Brush, PointF[], FillMode, Single) Fills the interior of a closed cardinal spline curve defined by an array of PointF structures using the specified fill mode and tension.
Public method FillEllipse(Brush, Rectangle) Fills the interior of an ellipse defined by a bounding rectangle specified by a Rectangle structure.
Public method FillEllipse(Brush, RectangleF) Fills the interior of an ellipse defined by a bounding rectangle specified by a RectangleF structure.
Public method FillEllipse(Brush, Int32, Int32, Int32, Int32) Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
Public method FillEllipse(Brush, Single, Single, Single, Single) Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
Public method FillPath Fills the interior of a GraphicsPath.
Public method FillPie(Brush, Rectangle, Single, Single) Fills the interior of a pie section defined by an ellipse specified by a RectangleF structure and two radial lines.
Public method FillPie(Brush, Int32, Int32, Int32, Int32, Int32, Int32) 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.
Public method FillPie(Brush, Single, Single, Single, Single, Single, Single) 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.
Public method FillPolygon(Brush, Point[]) Fills the interior of a polygon defined by an array of points specified by Point structures.
Public method FillPolygon(Brush, PointF[]) Fills the interior of a polygon defined by an array of points specified by PointF structures.
Public method 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.
Public method 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.
Public method FillRectangle(Brush, Rectangle) Fills the interior of a rectangle specified by a Rectangle structure.
Public method FillRectangle(Brush, RectangleF) Fills the interior of a rectangle specified by a RectangleF structure.
Public method FillRectangle(Brush, Int32, Int32, Int32, Int32) Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
Public method FillRectangle(Brush, Single, Single, Single, Single) Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
Public method FillRectangles(Brush, Rectangle[]) Fills the interiors of a series of rectangles specified by Rectangle structures.
Public method FillRectangles(Brush, RectangleF[]) Fills the interiors of a series of rectangles specified by RectangleF structures.
Public method FillRegion Fills the interior of a Region.
Public method Flush() Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
Public method Flush(FlushIntention) Forces execution of all pending graphics operations with the method waiting or not waiting, as specified, to return before the operations finish.
Public method Static member FromHdc(IntPtr) Creates a new Graphics from the specified handle to a device context.
Public method Static member FromHdc(IntPtr, IntPtr) Creates a new Graphics from the specified handle to a device context and handle to a device.
Public method Static member FromHdcInternal Infrastructure. Returns a Graphics for the specified device context.
Public method Static member FromHwnd Creates a new Graphics from the specified handle to a window.
Public method Static member FromHwndInternal Infrastructure. Creates a new Graphics for the specified windows handle.
Public method Static member FromImage Creates a new Graphics from the specified Image.
Public method GetContextInfo Infrastructure. Gets the cumulative graphics context.
Public method Static member GetHalftonePalette Gets a handle to the current Windows halftone palette.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetHdc Gets the handle to the device context associated with this Graphics.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetNearestColor Gets the nearest color to the specified Color structure.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method IntersectClip(Rectangle) Updates the clip region of this Graphics to the intersection of the current clip region and the specified Rectangle structure.
Public method IntersectClip(RectangleF) Updates the clip region of this Graphics to the intersection of the current clip region and the specified RectangleF structure.
Public method IntersectClip(Region) Updates the clip region of this Graphics to the intersection of the current clip region and the specified Region.
Public method IsVisible(Point) Indicates whether the specified Point structure is contained within the visible clip region of this Graphics.
Public method IsVisible(PointF) Indicates whether the specified PointF structure is contained within the visible clip region of this Graphics.
Public method IsVisible(Rectangle) Indicates whether the rectangle specified by a Rectangle structure is contained within the visible clip region of this Graphics.
Public method IsVisible(RectangleF) Indicates whether the rectangle specified by a RectangleF structure is contained within the visible clip region of this Graphics.
Public method IsVisible(Int32, Int32) Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
Public method IsVisible(Single, Single) Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
Public method IsVisible(Int32, Int32, Int32, Int32) 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.
Public method IsVisible(Single, Single, Single, Single) 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.
Public method MeasureCharacterRanges Gets an array of Region objects, each of which bounds a range of character positions within the specified string.
Public method MeasureString(String, Font) Measures the specified string when drawn with the specified Font.
Public method MeasureString(String, Font, SizeF) Measures the specified string when drawn with the specified Font within the specified layout area.
Public method MeasureString(String, Font, Int32) Measures the specified string when drawn with the specified Font.
Public method MeasureString(String, Font, PointF, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MeasureString(String, Font, SizeF, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MeasureString(String, Font, Int32, StringFormat) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MeasureString(String, Font, SizeF, StringFormat, Int32, Int32) Measures the specified string when drawn with the specified Font and formatted with the specified StringFormat.
Public method MultiplyTransform(Matrix) Multiplies the world transformation of this Graphics and specified the Matrix.
Public method MultiplyTransform(Matrix, MatrixOrder) Multiplies the world transformation of this Graphics and specified the Matrix in the specified order.
Public method ReleaseHdc() Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.
Public method ReleaseHdc(IntPtr) Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.
Public method ReleaseHdcInternal Infrastructure. Releases a handle to a device context.
Public method ResetClip Resets the clip region of this Graphics to an infinite region.
Public method ResetTransform Resets the world transformation matrix of this Graphics to the identity matrix.
Public method Restore Restores the state of this Graphics to the state represented by a GraphicsState.
Public method RotateTransform(Single) Applies the specified rotation to the transformation matrix of this Graphics.
Public method RotateTransform(Single, MatrixOrder) Applies the specified rotation to the transformation matrix of this Graphics in the specified order.
Public method Save Saves the current state of this Graphics and identifies the saved state with a GraphicsState.
Public method ScaleTransform(Single, Single) Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object's transformation matrix.
Public method ScaleTransform(Single, Single, MatrixOrder) Applies the specified scaling operation to the transformation matrix of this Graphics in the specified order.
Public method SetClip(Graphics) Sets the clipping region of this Graphics to the Clip property of the specified Graphics.
Public method SetClip(GraphicsPath) Sets the clipping region of this Graphics to the specified GraphicsPath.
Public method SetClip(Rectangle) Sets the clipping region of this Graphics to the rectangle specified by a Rectangle structure.
Public method SetClip(RectangleF) Sets the clipping region of this Graphics to the rectangle specified by a RectangleF structure.
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method 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.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Public method 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.
Public method 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.
Public method TranslateClip(Int32, Int32) Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
Public method TranslateClip(Single, Single) Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
Public method TranslateTransform(Single, Single) Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.
Public method TranslateTransform(Single, Single, MatrixOrder) Changes the origin of the coordinate system by applying the specified translation to the transformation matrix of this Graphics in the specified order.
Top
Show:
© 2014 Microsoft