ASP.NET Pack Programmer's Guide
IGraphics Members
Properties Methods
 


This interface exposes the public interface of the .NET System.Drawing.Graphics class.

The following tables list the members exposed by the IGraphics type.

 Public Properties

  Name Description

Clip

Gets or sets a .NET Region object that limits the drawing region of this IGraphics object.

ClipBounds

Gets a .NET RectangleF structure that bounds the clipping region of this IGraphics object.

CompositingMode

Gets or sets a value that specifies how composited images are drawn to this IGraphics object.

CompositingQuality

Gets or sets the rendering quality of composited images drawn to this IGraphics object.

DpiX

Gets the horizontal resolution of this IGraphics object.

DpiY

Gets the vertical resolution of this IGraphics object.

InterpolationMode

Gets or sets the interpolation mode associated with this IGraphics object.

IsClipEmpty

Gets a value indicating whether the clipping region of this IGraphics object is empty.

IsVisibleClipEmpty

Gets a value indicating whether the visible clipping region of this IGraphics object is empty.

PageScale

Gets or sets the scaling between world units and page units for this IGraphics object.

PageUnit

Gets or sets the unit of measure used for page coordinates in this IGraphics object.

PixelOffsetMode

Gets or set a value specifying how pixels are offset during rendering of this IGraphics object.

RenderingOrigin

Gets or sets the rendering origin of this IGraphics object for dithering and for hatch brushes.

SmoothingMode

Gets or sets the rendering quality for this IGraphics object.

TextContrast

Gets or sets the gamma correction value for rendering text.

TextRenderingHint

Gets or sets the rendering mode for text associated with this IGraphics object.

Transform

Gets or sets the world transformation for this IGraphics object.

VisibleClipBounds

Gets or sets the bounding rectangle of the visible clipping region of this IGraphics object.

 Public Methods

  Name Description

AddMetafileComment

Adds a comment to the current Metafile object.

BeginContainer

Overloaded. Saves a graphics container with the current state of this IGraphics object and opens and uses a new graphics container.

BeginHyperLink

 

Clear

Clears the entire drawing surface and fills it with the specified background color.

Dispose

Releases all resources used by this IGraphics 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 Bézier spline defined by four .NET Point structures.

DrawBeziers

Overloaded. Draws a series of Bézier 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

Overloaded. Draws an ellipse defined by a bounding rectangle specified by a pair of coordinates, a height, and a width.

DrawIcon

Overloaded. Draws the image represented by the specified .NET Icon object at the specified coordinates.

DrawIconUnstretched

Draws the image represented by the specified .NET Icon object without scaling the image.

DrawImage

Overloaded. Draws the specified .NET 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

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 .NET 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

Overloaded. Draws a polygon defined by an array of Point structures.

DrawRectangle

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

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 IGraphics object to the state saved by a call to the BeginContainer method.

EndHyperLink

 

ExcludeClip

Overloaded. Updates the clip region of this IGraphics object to exclude the area specified by a .NET Rectangle structure.

FillClosedCurve

Overloaded. Fills the interior a closed cardinal spline curve defined by an array of Point structures.

FillEllipse

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 .NET 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

Overloaded. Fills the interior of a polygon defined by an array of points specified by Point structures.

FillRectangle

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

Fills the interior of a .NET Region object.

Flush

Overloaded. Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish.

GetFontHeight

 

GetHdc

Gets the handle to the device context associated with this IGraphics.

GetNearestColor

Gets the nearest color to the specified Color structure.

IntersectClip

Overloaded. Updates the clip region of this IGraphics 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 IGraphics object.

MeasureCharacterRanges

Gets an array of Region objects, each of which bounds a range of character positions within the specified string.

MeasureString

Overloaded. Measures the specified string when drawn with the specified Font object.

MultiplyTransform

Overloaded. Multiplies the world transformation of this IGraphics object and specified the .NET Matrix object.

ReleaseHdc

Releases a device context handle obtained by a previous call to the GetHdc method of this IGraphics object.

ReleaseHdcInternal

Internal method. Do not use.

ResetClip

Resets the clip region of this IGraphics object to an infinite region.

ResetTransform

Resets the world transformation matrix of this IGraphics object to the identity matrix.

Restore

Restores the state of this IGraphics object to the state represented by a GraphicsState object.

RotateTransform

Overloaded. Applies the specified rotation to the transformation matrix of this IGraphics object.

Save

Saves the current state of this IGraphics object and identifies the saved state with a GraphicsState object.

ScaleTransform

Overloaded. Applies the specified scaling operation to the transformation matrix of this IGraphics object by prepending it to the object's transformation matrix.

SetClip

Overloaded. Sets the clipping region of this IGraphics object to the Clip property of the specified IGraphics object.

TransformPoints

Overloaded. Transforms an array of points from one coordinate space to another using the current world and page transformations of this IGraphics object.

TranslateClip

Overloaded. Translates the clipping region of this IGraphics object by specified amounts in the horizontal and vertical directions.

TranslateTransform

Overloaded. Prepends the specified translation to the transformation matrix of this IGraphics object.

 See Also

IGraphics Interface
MindFusion.Drawing Namespace