Drawing Class
Drawing provides a set of drawing methods used by Path and custom shape classes.
Drawing has the following implementations based on browser capability.
Constructor
Drawing
()
Item Index
Methods
clear
()
Clears the path.
curveTo
(
-
cp1x -
cp1y -
cp2x -
cp2y -
x -
y
Draws a bezier curve.
Parameters:
drawRect
(
-
x -
y -
w -
h
Draws a rectangle.
drawRoundRect
(
-
x -
y -
w -
h -
ew -
eh
Draws a rectangle with rounded corners.
end
()
Completes a drawing operation.
lineTo
(
-
point1 -
point2
Draws a line segment using the current line style from the current drawing position to the specified x and y coordinates.
moveTo
(
-
x -
y
Moves the current drawing position to specified x and y coordinates.
