[]
        
(Showing Draft Content)

C1.Framework.Drawing.Gdi.Graphics

Graphics Class

Represents the gdi graphics object that handles the gdi device context.

Inheritance
Graphics
Implements
Namespace: C1.Framework.Drawing.Gdi
Assembly: C1.Win.Input.8.dll
Syntax
public sealed class Graphics : MarshalByRefObject, IDisposable

Constructors

Name Description
Graphics(DeviceContext)

Initializes a new instance of the Graphics class.

Fields

Name Description
Default

A static Graphics used to measure geometries.

Properties

Name Description
ClipBound

Gets the Rectangle structure that bounds the clipping region of this Graphics object.

DeviceContext

Gets the DeviceContext of the Graphics.

DpiX

Gets the horizontal resolution of this Graphics object.

DpiY

Gets the vertical resolution of this Graphics object.

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.

Transform

Gets or sets the world transformation for this Graphics object.

Methods

Name Description
Copy(Graphics, Rectangle, Point)

Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source Graphics object into a destination Graphics object.

Copy(Graphics, Rectangle, Rectangle)

Performs a bit-block transfer of the color data corresponding to a rectangle of pixels from the specified source Graphics object into a destination Graphics object.

Dispose()

Releases all resources used by this Graphics object.

DrawArc(Pen, Rectangle, float, float)

Draw the special arc by using the given pen

DrawBezier(Pen, Point, Point, Point, Point)

Draws one Bezier curves on current Graphics.

DrawBeziers(Pen, Point[])

Draw the special Bezier curve on current Graphics by using the special pen.

DrawEllipse(Pen, Rectangle)

Draw the special ellipse by using the given pen

DrawLine(Pen, Point, Point)

Draw the special line by using given pen

DrawLines(Pen, Point[])

Draw the special lines on current Graphics by using the special pen.

DrawRectangle(Pen, Rectangle)

Draw the special rectangle by using the given pen

DrawString(string, Font, Brush, Point, 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 object.

DrawString(string, Font, Brush, Rectangle, 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 object.

ExcludeClip(Region)

Updates the clip region of this Graphics object to exclude the area specified by a Region object.

ExcludeClip(Rectangle)

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

FillEllipse(Brush, Rectangle)

Fill the special ellipse on current Grapchis by using special brush

FillPie(Brush, Rectangle, float, float)

Fill the special pie on current Grapchis by using special brush

FillPolygon(Brush, Point[])

Fill the special polygon on current Grapchis by using special brush

FillRectangle(Brush, Rectangle)

Fill the specified rectangle by using the given brush.

FillRegion(Brush, Region)

Fill the special region on current Grapchis by using special brush

~Graphics()

Deletes this Graphics, and frees the memory allocated for it.

FromGdiplusGraphics(Graphics)

Creates a new gdi graphics from a gdi+ graphics.

FromGdiplusGraphics(Graphics, bool)

Creates a new gdi graphics from a gdi+ graphics. This method kept the clip region, but remains low performance, when keptClipRegion is set to true.

GetClip()

Gets the region of the current clipping region of graphics.

IntersectClip(Region)

Updates the clip region of this Graphics object to the intersection of the current clip region and the specified Region object.

IntersectClip(Rectangle)

Updates the clip region of this Graphics object to the intersection of the current clip region and the specified Rectangle structure.

MeasureString(string, Font, Size, StringFormat)

Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object.

Scroll(int, int, Rectangle)

Moves the specified rectangle by offfset values.

SetClip(Region)

Sets the clipping region of this Graphics object to the result of the Replace combining the current clip region and the specified Region object.

SetClip(Region, CombineMode)

Sets the clipping region of this Graphics object to the result of the specified operation combining the current clip region and the specified Region object.

SetClip(Rectangle)

Sets the clipping region of this Graphics object to the rectangle specified by a Rectangle structure.

SetClip(Rectangle, CombineMode)

Sets the clipping region of this Graphics object to the result of the specified operation combining the current clip region and the rectangle specified by a Rectangle structure.

ToGdiplusGraphics(Graphics)

Creates a new gdi+ graphics from a gdi graphics.

TranslateClip(int, int)

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

TranslateTransform(int, int)

Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics object.