TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext >

 

Method

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext >

 

Method

 

 

Name

Description

arc

Adds points to a path that represents an arc.

beginPath

Resets the current path.

closePath

Closes the current Path.

fill

Paint the interior of the shape.

fillRect

Draws a rectangle and paints the interior of it.

lineTo

Draws a line from the current position up to, but not including, the specified point.

moveTo

Moves the path point to the given position.

quadraticCurveTo

Draw a two-dimensional curve using the start, end and control points.

rect

Draws a rectangle by the given position, width and height.

restore

Backs up fill color, line color and line thickness saved by save function.

save

Saves current fill color, line color and line thickness.

stroke

Renders the strokes of the current subpath by using the current stroke styles.

strokeRect

Draws an outline of the specified rectangle.