Return
| Name
|
void
| drawImage(Object image, float dx, float dy, [Optional] float dw, float dh)
|
Argument image can be of type HTMLImageElement, HTMLCanvasElement or HTMLVideoElement.
|
void
| drawImage(Object image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh)
|
Return
| Name
|
CanvasGradient
| createLinearGradient(float x0, float y0, float x1, float y1)
|
CanvasGradient
| createRadialGradient(float x0, float y0, float r0, float x1, float y1, float r1)
|
CanvasPattern
| createPattern(Object image, string repetition)
|
image is HTMLImageElement or HTMLCanvasElement.
repetition supports any of the following values:
- repeat (default)
- repeat-x
- repeat-y
- no-repeat
|
Return
| Name
|
void
| beginPath()
|
void
| closePath()
|
void
| fill()
|
void
| stroke()
|
void
| clip()
|
void
| moveTo(float x, float y)
|
void
| lineTo(float x, float y)
|
void
| quadraticCurveTo(float cpx, float cpy, float x, float y)
|
void
| bezierCurveTo(float cp1x, float cp1y, float cp2x, float cp2y, float x, float y)
|
void
| arcTo(float x1, float y1, float x2, float y2, float radius)
|
void
| arc(float x, float y, float radius, float startAngle, float endAngle, boolean anticlockwise)
|
void
| rect(float x, float y, float w, float h)
|
boolean
| isPointInPath(float x, float y)
|