Search
Graphics Members
Constructors Properties Methods
 


Contains helper functions for drawing on a Canvas element.

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

 Public Constructors

  Name Description

Graphics

Initializes a new instance of the Graphics class.

 Public Properties

  Name Description

context

Gets or sets the underlying CanvasRenderingContext2D drawing object.

 Public Methods

  Name Description

beginFigure

Starts a new figure.

clear

Clears the canvas.

clip

Sets the clip rectangle.

closeFigure

Closes the current figure.

drawCurve

Draws a spline curve.

drawEllipse

Draws an ellipse.

drawImage

Draws an image.

drawLines

Draws a series of straight lines.

drawPie

Draws a pie.

drawPolygon

Draws a polygon.

drawRectangle

Draws a rectangle.

drawString

Overloaded.  

fillEllipse

Fills an ellipse.

fillPie

Fills a pie.

fillPolygon

Fills a polygon.

fillRectangle

Fills a rectangle.

measureString

Gets the size of the specified string.

pointInPie

Checks if the given point is within the bounds of the given pie.

pointInPoly

Checks if the given point is within the bounds of the given polygon.

restore

Restores to a previously saved graphics state.

save

Saves the current graphics state.

setTransform

Sets a transform.

translate

Sets a translate transform.

 See Also