Drawing provides a set of drawing methods used by Path and custom shape classes.
Drawing has the following implementations based on browser capability.
DrawingclearClears the path.
curveTocp1x
cp1y
cp2x
cp2y
x
y
Draws a bezier curve.
drawRectx
y
w
h
Draws a rectangle.
drawRoundRectx
y
w
h
ew
eh
Draws a rectangle with rounded corners.
endCompletes a drawing operation.
lineTopoint1
point2
Draws a line segment using the current line style from the current drawing position to the specified x and y coordinates.
moveTox
y
Moves the current drawing position to specified x and y coordinates.