PaintRenderingContext2D class
- Implemented types
- Available extensions
- Annotations
-
- @JS()
- @staticInterop
Constructors
- PaintRenderingContext2D()
-
factory
Properties
- fillStyle ↔ dynamic
-
Available on CanvasFillStrokeStyles, provided by the PropsCanvasFillStrokeStyles extension
getter/setter pair - globalAlpha ↔ dynamic
-
Available on CanvasCompositing, provided by the PropsCanvasCompositing extension
getter/setter pair - globalCompositeOperation ↔ String
-
Available on CanvasCompositing, provided by the PropsCanvasCompositing extension
getter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- imageSmoothingEnabled ↔ bool
-
Available on CanvasImageSmoothing, provided by the PropsCanvasImageSmoothing extension
getter/setter pair - imageSmoothingQuality ↔ ImageSmoothingQuality
-
Available on CanvasImageSmoothing, provided by the PropsCanvasImageSmoothing extension
getter/setter pair - lineCap ↔ CanvasLineCap
-
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
getter/setter pair - lineDashOffset ↔ dynamic
-
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
getter/setter pair - lineJoin ↔ CanvasLineJoin
-
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
getter/setter pair - lineWidth ↔ dynamic
-
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
getter/setter pair - miterLimit ↔ dynamic
-
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowBlur ↔ dynamic
-
Available on CanvasShadowStyles, provided by the PropsCanvasShadowStyles extension
getter/setter pair - shadowColor ↔ String
-
Available on CanvasShadowStyles, provided by the PropsCanvasShadowStyles extension
getter/setter pair - shadowOffsetX ↔ dynamic
-
Available on CanvasShadowStyles, provided by the PropsCanvasShadowStyles extension
getter/setter pair - shadowOffsetY ↔ dynamic
-
Available on CanvasShadowStyles, provided by the PropsCanvasShadowStyles extension
getter/setter pair - strokeStyle ↔ dynamic
-
Available on CanvasFillStrokeStyles, provided by the PropsCanvasFillStrokeStyles extension
getter/setter pair
Methods
-
arc(
dynamic x, dynamic y, dynamic radius, dynamic startAngle, dynamic endAngle, [bool? counterclockwise = false]) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
arcTo(
dynamic x1, dynamic y1, dynamic x2, dynamic y2, dynamic radius) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
beginPath(
) → void -
Available on CanvasDrawPath, provided by the PropsCanvasDrawPath extension
-
bezierCurveTo(
dynamic cp1x, dynamic cp1y, dynamic cp2x, dynamic cp2y, dynamic x, dynamic y) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
clearRect(
dynamic x, dynamic y, dynamic w, dynamic h) → void -
Available on CanvasRect, provided by the PropsCanvasRect extension
-
clip(
[Path2D? path, CanvasFillRule? fillRule = CanvasFillRule.nonzero]) → void -
Available on CanvasDrawPath, provided by the PropsCanvasDrawPath extension
-
closePath(
) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
createConicGradient(
double startAngle, double x, double y) → CanvasGradient -
Available on CanvasFillStrokeStyles, provided by the PropsCanvasFillStrokeStyles extension
-
createLinearGradient(
double x0, double y0, double x1, double y1) → CanvasGradient -
Available on CanvasFillStrokeStyles, provided by the PropsCanvasFillStrokeStyles extension
-
createPattern(
dynamic image, String repetition) → CanvasPattern? -
Available on CanvasFillStrokeStyles, provided by the PropsCanvasFillStrokeStyles extension
-
createRadialGradient(
double x0, double y0, double r0, double x1, double y1, double r1) → CanvasGradient -
Available on CanvasFillStrokeStyles, provided by the PropsCanvasFillStrokeStyles extension
-
drawImage(
dynamic image, dynamic sx, [dynamic sy, dynamic sw, dynamic sh, dynamic dx, dynamic dy, dynamic dw, dynamic dh]) → void -
Available on CanvasDrawImage, provided by the PropsCanvasDrawImage extension
-
ellipse(
dynamic x, dynamic y, dynamic radiusX, dynamic radiusY, dynamic rotation, dynamic startAngle, dynamic endAngle, [bool? counterclockwise = false]) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
fill(
[Path2D? path, CanvasFillRule? fillRule = CanvasFillRule.nonzero]) → void -
Available on CanvasDrawPath, provided by the PropsCanvasDrawPath extension
-
fillRect(
dynamic x, dynamic y, dynamic w, dynamic h) → void -
Available on CanvasRect, provided by the PropsCanvasRect extension
-
getLineDash(
) → Iterable -
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
-
getTransform(
) → DOMMatrix -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
-
isContextLost(
) → bool -
Available on CanvasState, provided by the PropsCanvasState extension
-
isPointInPath(
Path2D path, dynamic x, [dynamic y, CanvasFillRule? fillRule = CanvasFillRule.nonzero]) → bool -
Available on CanvasDrawPath, provided by the PropsCanvasDrawPath extension
-
isPointInStroke(
Path2D path, [dynamic x, dynamic y]) → bool -
Available on CanvasDrawPath, provided by the PropsCanvasDrawPath extension
-
lineTo(
dynamic x, dynamic y) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
moveTo(
dynamic x, dynamic y) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quadraticCurveTo(
dynamic cpx, dynamic cpy, dynamic x, dynamic y) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
rect(
dynamic x, dynamic y, dynamic w, dynamic h) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
reset(
) → void -
Available on CanvasState, provided by the PropsCanvasState extension
-
resetTransform(
) → void -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
-
restore(
) → void -
Available on CanvasState, provided by the PropsCanvasState extension
-
rotate(
dynamic angle) → void -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
-
roundRect(
dynamic x, dynamic y, dynamic w, dynamic h, [dynamic radii = 0]) → void -
Available on CanvasPath, provided by the PropsCanvasPath extension
-
save(
) → void -
Available on CanvasState, provided by the PropsCanvasState extension
-
scale(
dynamic x, dynamic y) → void -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
-
setLineDash(
Iterable segments) → void -
Available on CanvasPathDrawingStyles, provided by the PropsCanvasPathDrawingStyles extension
-
setTransform(
[dynamic a, dynamic b, dynamic c, dynamic d, dynamic e, dynamic f]) → void -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
-
stroke(
[Path2D? path]) → void -
Available on CanvasDrawPath, provided by the PropsCanvasDrawPath extension
-
strokeRect(
dynamic x, dynamic y, dynamic w, dynamic h) → void -
Available on CanvasRect, provided by the PropsCanvasRect extension
-
toString(
) → String -
A string representation of this object.
inherited
-
transform(
dynamic a, dynamic b, dynamic c, dynamic d, dynamic e, dynamic f) → void -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
-
translate(
dynamic x, dynamic y) → void -
Available on CanvasTransform, provided by the PropsCanvasTransform extension
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited