Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
Graphics Class
Graphics Methods

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
Graphics Methods

The Graphics type exposes the following members.

  NameDescription
Public methodAddMetafileComment Adds a comment to the current Metafile.
Public methodBeginContainerOverloaded. Saves a graphics container with the current state of this Graphics and opens and uses a new graphics container.
Public methodSupported by the .NET Compact FrameworkClear Clears the entire drawing surface and fills it with the specified background color.
Public methodCopyFromScreenOverloaded. Performs a bit-block transfer of color data from the screen to the drawing surface of the Graphics.
Public methodCreateObjRefCreates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public methodSupported by the .NET Compact FrameworkDispose Releases all resources used by this Graphics.
Public methodDrawArcOverloaded. Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height.
Public methodDrawBezierOverloaded. Draws a Bézier spline defined by four Point structures.
Public methodDrawBeziersOverloaded. Draws a series of Bézier splines from an array of Point structures.
Public methodDrawClosedCurveOverloaded. Draws a closed cardinal spline defined by an array of Point structures.
Public methodDrawCurveOverloaded. Draws a cardinal spline through a specified array of Point structures.
Public methodSupported by the .NET Compact FrameworkDrawEllipseOverloaded. Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.
Public methodSupported by the .NET Compact FrameworkDrawIconOverloaded. Draws the image represented by the specified Icon at the specified coordinates.
Public methodDrawIconUnstretched Draws the image represented by the specified Icon without scaling the image.
Public methodSupported by the .NET Compact FrameworkDrawImageOverloaded. Draws the specified Image at the specified location and with the original size.
Public methodDrawImageUnscaledOverloaded. Draws the specified image using its original physical size at the location specified by a coordinate pair.
Public methodDrawImageUnscaledAndClipped Draws the specified image without scaling and clips it, if necessary, to fit in the specified rectangle.
Public methodSupported by the .NET Compact FrameworkDrawLineOverloaded. Draws a line connecting the two points specified by the coordinate pairs.
Public methodSupported by the .NET Compact FrameworkDrawLinesOverloaded. Draws a series of line segments that connect an array of Point structures.
Public methodDrawPath Draws a GraphicsPath.
Public methodDrawPieOverloaded. Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, a height, and two radial lines.
Public methodSupported by the .NET Compact FrameworkDrawPolygonOverloaded. Draws a polygon defined by an array of Point structures.
Public methodSupported by the .NET Compact FrameworkDrawRectangleOverloaded. Draws a rectangle specified by a coordinate pair, a width, and a height.
Public methodDrawRectanglesOverloaded. Draws a series of rectangles specified by Rectangle structures.
Public methodSupported by the .NET Compact FrameworkDrawStringOverloaded. Draws the specified text string at the specified location with the specified Brush and Font objects.
Public methodEndContainer Closes the current graphics container and restores the state of this Graphics to the state saved by a call to the BeginContainer method.
Public methodEnumerateMetafileOverloaded. Sends the records in the specified Metafile, one at a time, to a callback method for display at a specified point.
Public methodSupported by the .NET Compact FrameworkEquals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public methodExcludeClipOverloaded. Updates the clip region of this Graphics to exclude the area specified by a Rectangle structure.
Public methodFillClosedCurveOverloaded. Fills the interior of a closed cardinal spline curve defined by an array of Point structures.
Public methodSupported by the .NET Compact FrameworkFillEllipseOverloaded. Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height.
Public methodFillPath Fills the interior of a GraphicsPath.
Public methodFillPieOverloaded. 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 methodSupported by the .NET Compact FrameworkFillPolygonOverloaded. Fills the interior of a polygon defined by an array of points specified by Point structures.
Public methodSupported by the .NET Compact FrameworkFillRectangleOverloaded. Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height.
Public methodFillRectanglesOverloaded. Fills the interiors of a series of rectangles specified by Rectangle structures.
Public methodSupported by the .NET Compact FrameworkFillRegion Fills the interior of a Region.
Protected methodSupported by the .NET Compact FrameworkFinalize Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodFlushOverloaded. Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.
Public methodStatic memberSupported by the .NET Compact FrameworkFromHdcOverloaded. Creates a new Graphics from the specified handle to a device context.
Public methodStatic memberFromHdcInternalInfrastructure. Returns a Graphics for the specified device context.
Public methodStatic memberSupported by the .NET Compact FrameworkFromHowInfrastructure. Creates a graphics object.
Public methodStatic memberFromHwnd Creates a new Graphics from the specified handle to a window.
Public methodStatic memberFromHwndInternalInfrastructure. Creates a new Graphics for the specified windows handle.
Public methodStatic memberSupported by the .NET Compact FrameworkFromImage Creates a new Graphics from the specified Image.
Public methodGetContextInfoInfrastructure. Gets the cumulative graphics context.
Public methodStatic memberGetHalftonePalette Gets a handle to the current Windows halftone palette.
Public methodSupported by the .NET Compact FrameworkGetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHdc Gets the handle to the device context associated with this Graphics.
Public methodGetLifetimeServiceRetrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodGetNearestColor Gets the nearest color to the specified Color structure.
Public methodSupported by the .NET Compact FrameworkGetType Gets the Type of the current instance. (Inherited from Object.)
Public methodInitializeLifetimeServiceObtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public methodIntersectClipOverloaded. Updates the clip region of this Graphics to the intersection of the current clip region and the specified Rectangle structure.
Public methodIsVisibleOverloaded. Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics.
Public methodMeasureCharacterRanges Gets an array of Region objects, each of which bounds a range of character positions within the specified string.
Public methodSupported by the .NET Compact FrameworkMeasureStringOverloaded. Measures the specified string when drawn with the specified Font.
Protected methodSupported by the .NET Compact FrameworkMemberwiseCloneOverloaded.
Public methodMultiplyTransformOverloaded. Multiplies the world transformation of this Graphics and specified the Matrix.
Public methodSupported by the .NET Compact FrameworkReleaseHdcOverloaded. Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics.
Public methodReleaseHdcInternalInfrastructure. Releases a handle to a device context.
Public methodSupported by the .NET Compact FrameworkResetClip Resets the clip region of this Graphics to an infinite region.
Public methodResetTransform Resets the world transformation matrix of this Graphics to the identity matrix.
Public methodRestore Restores the state of this Graphics to the state represented by a GraphicsState.
Public methodRotateTransformOverloaded. Applies the specified rotation to the transformation matrix of this Graphics.
Public methodSave Saves the current state of this Graphics and identifies the saved state with a GraphicsState.
Public methodScaleTransformOverloaded. Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object's transformation matrix.
Public methodSetClipOverloaded. Sets the clipping region of this Graphics to the Clip property of the specified Graphics.
Public methodSupported by the .NET Compact FrameworkToString Returns a String that represents the current Object. (Inherited from Object.)
Public methodTransformPointsOverloaded. Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics.
Public methodTranslateClipOverloaded. Translates the clipping region of this Graphics by specified amounts in the horizontal and vertical directions.
Public methodTranslateTransformOverloaded. Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics.
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker