Graphics Members
Public Properties
Clip Supported by the .NET Compact Framework. | Gets or sets a Region object that limits the drawing region of this Graphics object. |
ClipBounds Supported by the .NET Compact Framework. | Gets a RectangleF structure that bounds the clipping region of this Graphics object. |
CompositingMode | Gets a value that specifies how composited images are drawn to this Graphics object. |
CompositingQuality | Gets or sets the rendering quality of composited images drawn to this Graphics object. |
DpiX | Gets the horizontal resolution of this Graphics object. |
DpiY | Gets the vertical resolution of this Graphics object. |
InterpolationMode | Gets or sets the interpolation mode associated with this Graphics object. |
IsClipEmpty | Gets a value indicating whether the clipping region of this Graphics object is empty. |
IsVisibleClipEmpty | Gets a value indicating whether the visible clipping region of this Graphics object is empty. |
PageScale | Gets or sets the scaling between world units and page units for this Graphics object. |
PageUnit | Gets or sets the unit of measure used for page coordinates in this Graphics object. |
PixelOffsetMode | Gets or set a value specifying how pixels are offset during rendering of this Graphics object. |
RenderingOrigin | Gets or sets the rendering origin of this Graphics object for dithering and for hatch brushes. |
SmoothingMode | Gets or sets the rendering quality for this Graphics object. |
TextContrast | Gets or sets the gamma correction value for rendering text. |
TextRenderingHint | Gets or sets the rendering mode for text associated with this Graphics object. |
Transform | Gets or sets the world transformation for this Graphics object. |
VisibleClipBounds | Gets or sets the bounding rectangle of the visible clipping region of this Graphics object. |
Public Methods
AddMetafileComment | Adds a comment to the current Metafile object. |
BeginContainer | Overloaded. Saves a graphics container with the current state of this Graphics object and opens and uses a new graphics container. |
Clear Supported by the .NET Compact Framework. | Clears the entire drawing surface and fills it with the specified background color. |
CreateObjRef (inherited from MarshalByRefObject) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. |
Dispose Supported by the .NET Compact Framework. | Releases all resources used by this Graphics object. |
DrawArc | Overloaded. Draws an arc representing a portion of an ellipse specified by a pair of coordinates, a width, and a height. |
DrawBezier | Overloaded. Draws a Bzier spline defined by four Point structures. |
DrawBeziers | Overloaded. Draws a series of Bzier splines from an array of Point structures. |
DrawClosedCurve | Overloaded. Draws a closed cardinal spline defined by an array of Point structures. |
DrawCurve | Overloaded. Draws a cardinal spline through a specified array of Point structures. |
DrawEllipse Supported by the .NET Compact Framework. | Overloaded. Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width. |
DrawIcon Supported by the .NET Compact Framework. | Overloaded. Draws the image represented by the specified Icon object at the specified coordinates. |
DrawIconUnstretched | Draws the image represented by the specified Icon object without scaling the image. |
DrawImage Supported by the .NET Compact Framework. | Overloaded. Draws the specified Image object at the specified location and with the original size. |
DrawImageUnscaled | Overloaded. Draws the specified image using its original physical size at the location specified by a coordinate pair. |
DrawLine Supported by the .NET Compact Framework. | Overloaded. Draws a line connecting the two points specified by coordinate pairs. |
DrawLines | Overloaded. Draws a series of line segments that connect an array of Point structures. |
DrawPath | Draws a GraphicsPath object. |
DrawPie | Overloaded. Draws a pie shape defined by an ellipse specified by a coordinate pair, a width, and a height and two radial lines. |
DrawPolygon Supported by the .NET Compact Framework. | Overloaded. Draws a polygon defined by an array of Point structures. |
DrawRectangle Supported by the .NET Compact Framework. | Overloaded. Draws a rectangle specified by a coordinate pair, a width, and a height. |
DrawRectangles | Overloaded. Draws a series of rectangles specified by Rectangle structures. |
DrawString Supported by the .NET Compact Framework. | Overloaded. Draws the specified text string at the specified location with the specified Brush and Font objects. |
EndContainer | Closes the current graphics container and restores the state of this Graphics object to the state saved by a call to the BeginContainer method. |
EnumerateMetafile | Overloaded. Sends the records in the specified Metafile object, one at a time, to a callback method for display at a specified point. |
Equals (inherited from Object)
Supported by the .NET Compact Framework. | Overloaded. Determines whether two Object instances are equal. |
ExcludeClip | Overloaded. Updates the clip region of this Graphics object to exclude the area specified by a Rectangle structure. |
FillClosedCurve | Overloaded. Fills the interior a closed cardinal spline curve defined by an array of Point structures. |
FillEllipse Supported by the .NET Compact Framework. | Overloaded. Fills the interior of an ellipse defined by a bounding rectangle specified by a pair of coordinates, a width, and a height. |
FillPath | Fills the interior of a GraphicsPath object. |
FillPie | Overloaded. Fills the interior of a pie section defined by an ellipse specified by a pair of coordinates, a width, and a height and two radial lines. |
FillPolygon Supported by the .NET Compact Framework. | Overloaded. Fills the interior of a polygon defined by an array of points specified by Point structures. |
FillRectangle Supported by the .NET Compact Framework. | Overloaded. Fills the interior of a rectangle specified by a pair of coordinates, a width, and a height. |
FillRectangles | Overloaded. Fills the interiors of a series of rectangles specified by Rectangle structures. |
FillRegion Supported by the .NET Compact Framework. | Fills the interior of a Region object. |
Flush | Overloaded. Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish. |
![]() FromHdc | Overloaded. Creates a new Graphics object from the specified handle to a device context. |
![]() FromHdcInternal | Internal method. Do not use. |
![]() FromHwnd | Creates a new Graphics object from the specified handle to a window. |
![]() FromHwndInternal | Internal method. Do not use. |
![]() FromImage Supported by the .NET Compact Framework. | Creates a new Graphics object from the specified Image object. |
![]() GetHalftonePalette | Gets a handle to the current Windows halftone palette. |
GetHashCode (inherited from Object)
Supported by the .NET Compact Framework. | Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table. |
GetHdc | Gets the handle to the device context associated with this Graphics object. |
GetLifetimeService (inherited from MarshalByRefObject) | Retrieves the current lifetime service object that controls the lifetime policy for this instance. |
GetNearestColor | Gets the nearest color to the specified Color structure. |
GetType (inherited from Object)
Supported by the .NET Compact Framework. | Gets the Type of the current instance. |
InitializeLifetimeService (inherited from MarshalByRefObject) | Obtains a lifetime service object to control the lifetime policy for this instance. |
IntersectClip | Overloaded. Updates the clip region of this Graphics object to the intersection of the current clip region and the specified Rectangle structure. |
IsVisible | Overloaded. Indicates whether the point specified by a pair of coordinates is contained within the visible clip region of this Graphics object. |
MeasureCharacterRanges | Gets an array of Region objects, each of which bounds a range of character positions within the specified string. |
MeasureString Supported by the .NET Compact Framework. | Overloaded. Measures the specified string when drawn with the specified Font object. |
MultiplyTransform | Overloaded. Multiplies the world transformation of this Graphics object and specified the Matrix object. |
ReleaseHdc | Releases a device context handle obtained by a previous call to the GetHdc method of this Graphics object. |
ReleaseHdcInternal | Internal method. Do not use. |
ResetClip Supported by the .NET Compact Framework. | Resets the clip region of this Graphics object to an infinite region. |
ResetTransform | Resets the world transformation matrix of this Graphics object to the identity matrix. |
Restore | Restores the state of this Graphics object to the state represented by a GraphicsState object. |
RotateTransform | Overloaded. Applies the specified rotation to the transformation matrix of this Graphics object. |
Save | Saves the current state of this Graphics object and identifies the saved state with a GraphicsState object. |
ScaleTransform | Overloaded. Applies the specified scaling operation to the transformation matrix of this Graphics object by prepending it to the object's transformation matrix. |
SetClip | Overloaded. Sets the clipping region of this Graphics object to the Clip property of the specified Graphics object. |
ToString (inherited from Object)
Supported by the .NET Compact Framework. | Returns a String that represents the current Object. |
TransformPoints | Overloaded. Transforms an array of points from one coordinate space to another using the current world and page transformations of this Graphics object. |
TranslateClip | Overloaded. Translates the clipping region of this Graphics object by specified amounts in the horizontal and vertical directions. |
TranslateTransform | Overloaded. Prepends the specified translation to the transformation matrix of this Graphics object. |
Protected Methods
Finalize Supported by the .NET Compact Framework. | Overridden. See Object.Finalize.
In C# and C++, finalizers are expressed using destructor syntax. |
MemberwiseClone (inherited from Object)
Supported by the .NET Compact Framework. | Creates a shallow copy of the current Object. |
