Public Member Functions | |
attribute (DOMString or CanvasGradient or CanvasPattern) fillStyle | |
attribute (DOMString or CanvasGradient or CanvasPattern) strokeStyle | |
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 (HTMLCanvasElement image, [TreatNullAs=EmptyString] DOMString repetition) |
CanvasPattern | createPattern (HTMLImageElement image, [TreatNullAs=EmptyString] DOMString repetition) |
void | save () |
void | restore () |
void | clearRect (float x, float y, float w, float h) |
void | fillRect (float x, float y, float w, float h) |
void | strokeRect (float x, float y, float w, float h) |
void | fillText (DOMString text, float x, float y, optional float maxWidth) |
void | strokeText (DOMString text, float x, float y, optional float maxWidth) |
TextMetrics | measureText (DOMString text) |
void | drawImage (HTMLCanvasElement image, float dx, float dy) |
void | drawImage (HTMLCanvasElement image, float dx, float dy, float dw, float dh) |
void | drawImage (HTMLCanvasElement image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh) |
void | drawImage (HTMLVideoElement image, float dx, float dy) |
void | drawImage (HTMLVideoElement image, float dx, float dy, float dw, float dh) |
void | drawImage (HTMLVideoElement image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh) |
void | drawImage (HTMLImageElement image, float dx, float dy) |
void | drawImage (HTMLImageElement image, float dx, float dy, float dw, float dh) |
void | drawImage (HTMLImageElement image, float sx, float sy, float sw, float sh, float dx, float dy, float dw, float dh) |
void | scale (float x, float y) |
void | rotate (float angle) |
void | translate (float x, float y) |
void | transform (float a, float b, float c, float d, float e, float f) |
void | setTransform (float a, float b, float c, float d, float e, float f) |
void | beginPath () |
void | fill () |
void | stroke () |
void | drawFocusIfNeeded (Element element) |
void | clip () |
void | closePath () |
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 | rect (float x, float y, float w, float h) |
void | arc (float x, float y, float radius, float startAngle, float endAngle, optional boolean counterclockwise=false) |
Public Attributes | |
readonly attribute HTMLCanvasElement | canvas |
attribute float | globalAlpha |
attribute DOMString | globalCompositeOperation |
attribute float | lineWidth |
attribute DOMString | lineCap |
attribute DOMString | lineJoin |
attribute float | miterLimit |
attribute DOMString | font |
Specifies the current text style to use when drawing text. This string uses the same syntax as the CSS font specifier. More... | |
attribute DOMString | textAlign |
attribute DOMString | textBaseline |
attribute float | shadowOffsetX |
attribute float | shadowOffsetY |
attribute float | shadowBlur |
attribute DOMString | shadowColor |
attribute boolean | enableFastLineSegmentDrawing |
void CanvasRenderingContext2D::arc | ( | float | x, |
float | y, | ||
float | radius, | ||
float | startAngle, | ||
float | endAngle, | ||
optional boolean | counterclockwise = false |
||
) |
void CanvasRenderingContext2D::arcTo | ( | float | x1, |
float | y1, | ||
float | x2, | ||
float | y2, | ||
float | radius | ||
) |
CanvasRenderingContext2D::attribute | ( | DOMString or CanvasGradient or | CanvasPattern | ) |
CanvasRenderingContext2D::attribute | ( | DOMString or CanvasGradient or | CanvasPattern | ) |
void CanvasRenderingContext2D::beginPath | ( | ) |
void CanvasRenderingContext2D::bezierCurveTo | ( | float | cp1x, |
float | cp1y, | ||
float | cp2x, | ||
float | cp2y, | ||
float | x, | ||
float | y | ||
) |
void CanvasRenderingContext2D::clearRect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
void CanvasRenderingContext2D::clip | ( | ) |
void CanvasRenderingContext2D::closePath | ( | ) |
CanvasGradient CanvasRenderingContext2D::createLinearGradient | ( | float | x0, |
float | y0, | ||
float | x1, | ||
float | y1 | ||
) |
CanvasPattern CanvasRenderingContext2D::createPattern | ( | HTMLCanvasElement | image, |
[TreatNullAs=EmptyString] DOMString | repetition | ||
) |
CanvasPattern CanvasRenderingContext2D::createPattern | ( | HTMLImageElement | image, |
[TreatNullAs=EmptyString] DOMString | repetition | ||
) |
CanvasGradient CanvasRenderingContext2D::createRadialGradient | ( | float | x0, |
float | y0, | ||
float | r0, | ||
float | x1, | ||
float | y1, | ||
float | r1 | ||
) |
void CanvasRenderingContext2D::drawFocusIfNeeded | ( | Element | element | ) |
void CanvasRenderingContext2D::drawImage | ( | HTMLCanvasElement | image, |
float | dx, | ||
float | dy | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLCanvasElement | image, |
float | dx, | ||
float | dy, | ||
float | dw, | ||
float | dh | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLCanvasElement | image, |
float | sx, | ||
float | sy, | ||
float | sw, | ||
float | sh, | ||
float | dx, | ||
float | dy, | ||
float | dw, | ||
float | dh | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLVideoElement | image, |
float | dx, | ||
float | dy | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLVideoElement | image, |
float | dx, | ||
float | dy, | ||
float | dw, | ||
float | dh | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLVideoElement | image, |
float | sx, | ||
float | sy, | ||
float | sw, | ||
float | sh, | ||
float | dx, | ||
float | dy, | ||
float | dw, | ||
float | dh | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLImageElement | image, |
float | dx, | ||
float | dy | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLImageElement | image, |
float | dx, | ||
float | dy, | ||
float | dw, | ||
float | dh | ||
) |
void CanvasRenderingContext2D::drawImage | ( | HTMLImageElement | image, |
float | sx, | ||
float | sy, | ||
float | sw, | ||
float | sh, | ||
float | dx, | ||
float | dy, | ||
float | dw, | ||
float | dh | ||
) |
void CanvasRenderingContext2D::fill | ( | ) |
void CanvasRenderingContext2D::fillRect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
void CanvasRenderingContext2D::fillText | ( | DOMString | text, |
float | x, | ||
float | y, | ||
optional float | maxWidth | ||
) |
void CanvasRenderingContext2D::lineTo | ( | float | x, |
float | y | ||
) |
TextMetrics CanvasRenderingContext2D::measureText | ( | DOMString | text | ) |
void CanvasRenderingContext2D::moveTo | ( | float | x, |
float | y | ||
) |
void CanvasRenderingContext2D::quadraticCurveTo | ( | float | cpx, |
float | cpy, | ||
float | x, | ||
float | y | ||
) |
void CanvasRenderingContext2D::rect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
void CanvasRenderingContext2D::restore | ( | ) |
void CanvasRenderingContext2D::rotate | ( | float | angle | ) |
void CanvasRenderingContext2D::save | ( | ) |
void CanvasRenderingContext2D::scale | ( | float | x, |
float | y | ||
) |
void CanvasRenderingContext2D::setTransform | ( | float | a, |
float | b, | ||
float | c, | ||
float | d, | ||
float | e, | ||
float | f | ||
) |
void CanvasRenderingContext2D::stroke | ( | ) |
void CanvasRenderingContext2D::strokeRect | ( | float | x, |
float | y, | ||
float | w, | ||
float | h | ||
) |
void CanvasRenderingContext2D::strokeText | ( | DOMString | text, |
float | x, | ||
float | y, | ||
optional float | maxWidth | ||
) |
void CanvasRenderingContext2D::transform | ( | float | a, |
float | b, | ||
float | c, | ||
float | d, | ||
float | e, | ||
float | f | ||
) |
void CanvasRenderingContext2D::translate | ( | float | x, |
float | y | ||
) |
readonly attribute HTMLCanvasElement CanvasRenderingContext2D::canvas |
attribute boolean CanvasRenderingContext2D::enableFastLineSegmentDrawing |
attribute DOMString CanvasRenderingContext2D::font |
Specifies the current text style to use when drawing text. This string uses the same syntax as the CSS font specifier.
attribute float CanvasRenderingContext2D::globalAlpha |
attribute DOMString CanvasRenderingContext2D::globalCompositeOperation |
attribute DOMString CanvasRenderingContext2D::lineCap |
attribute DOMString CanvasRenderingContext2D::lineJoin |
attribute float CanvasRenderingContext2D::lineWidth |
attribute float CanvasRenderingContext2D::miterLimit |
attribute float CanvasRenderingContext2D::shadowBlur |
attribute DOMString CanvasRenderingContext2D::shadowColor |
attribute float CanvasRenderingContext2D::shadowOffsetX |
attribute float CanvasRenderingContext2D::shadowOffsetY |
attribute DOMString CanvasRenderingContext2D::textAlign |
attribute DOMString CanvasRenderingContext2D::textBaseline |