PaintRenderingContext2D
extension type
- on
-
- Implemented types
-
- Available extensions
Methods
-
beginPath()
→ void
-
-
clearRect(num x, num y, num w, num h)
→ void
-
-
clip([JSAny fillRuleOrPath, CanvasFillRule fillRule])
→ void
-
-
createLinearGradient(num x0, num y0, num x1, num y1)
→ CanvasGradient
-
-
createPattern(CanvasImageSource image, String repetition)
→ CanvasPattern?
-
-
createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1)
→ CanvasGradient
-
-
drawImage(CanvasImageSource image, num dxOrSx, num dyOrSy, [num dwOrSw, num dhOrSh, num dx, num dy, num dw, num dh])
→ void
-
-
fill([JSAny fillRuleOrPath, CanvasFillRule fillRule])
→ void
-
-
fillRect(num x, num y, num w, num h)
→ void
-
-
getLineDash()
→ JSArray<JSNumber>
-
-
getTransform()
→ DOMMatrix
-
-
isPointInPath(JSAny pathOrX, num xOrY, [JSAny fillRuleOrY, CanvasFillRule fillRule])
→ bool
-
-
isPointInStroke(JSAny pathOrX, num xOrY, [num y])
→ bool
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
resetTransform()
→ void
-
-
restore()
→ void
-
-
rotate(num angle)
→ void
-
-
save()
→ void
-
-
scale(num x, num y)
→ void
-
-
setLineDash(JSArray<JSNumber> segments)
→ void
-
-
setTransform([JSAny aOrTransform, num b, num c, num d, num e, num f])
→ void
-
-
stroke([Path2D path])
→ void
-
-
strokeRect(num x, num y, num w, num h)
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
transform(num a, num b, num c, num d, num e, num f)
→ void
-
-
translate(num x, num y)
→ void
-