OffscreenCanvasRenderingContext2D class

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

OffscreenCanvasRenderingContext2D()
factory

Properties

arc ↔ void Function(num, num, num, num, num, [bool?])

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
arcTo ↔ void Function(num, num, num, num, num)

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
beginPath ↔ void Function()

Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension

getter/setter pair
bezierCurveTo ↔ void Function(num, num, num, num, num, num)

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
canvas OffscreenCanvas

Available on OffscreenCanvasRenderingContext2D, provided by the OffscreenCanvasRenderingContext2D$Typings extension

no setter
clearRect ↔ void Function(num, num, num, num)

Available on CanvasRect, provided by the CanvasRect$Typings extension

getter/setter pair
clip → ({void Function([CanvasFillRule? fillRule]) $1, void Function(Path2D path, [CanvasFillRule? fillRule]) $2})

Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension

Overload accessor: $1, $2
no setter
closePath ↔ void Function()

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
commit ↔ void Function()

Available on OffscreenCanvasRenderingContext2D, provided by the OffscreenCanvasRenderingContext2D$Typings extension

getter/setter pair
createConicGradient CanvasGradient Function(num, num, num)

Available on CanvasFillStrokeStyles, provided by the CanvasFillStrokeStyles$Typings extension

getter/setter pair
createImageData → ({ImageData Function(ImageData imagedata) $1, ImageData Function(num sw, num sh, [ImageDataSettings? settings]) $2})

Available on CanvasImageData, provided by the CanvasImageData$Typings extension

Overload accessor: $1, $2
no setter
createLinearGradient CanvasGradient Function(num, num, num, num)

Available on CanvasFillStrokeStyles, provided by the CanvasFillStrokeStyles$Typings extension

getter/setter pair
createPattern CanvasPattern? Function(Object, [String?])

Available on CanvasFillStrokeStyles, provided by the CanvasFillStrokeStyles$Typings extension

getter/setter pair
createRadialGradient CanvasGradient Function(num, num, num, num, num, num)

Available on CanvasFillStrokeStyles, provided by the CanvasFillStrokeStyles$Typings extension

getter/setter pair
direction CanvasDirection

Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension

MDN Reference
getter/setter pair
ellipse ↔ void Function(num, num, num, num, num, num, num, [bool?])

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
fill → ({void Function([CanvasFillRule? fillRule]) $1, void Function(Path2D path, [CanvasFillRule? fillRule]) $2})

Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension

Overload accessor: $1, $2
no setter
fillRect ↔ void Function(num, num, num, num)

Available on CanvasRect, provided by the CanvasRect$Typings extension

getter/setter pair
fillStyle Object

Available on CanvasFillStrokeStyles, provided by the CanvasFillStrokeStyles$Typings extension

MDN Reference
getter/setter pair
fillText ↔ void Function(String, num, num, [num?])

Available on CanvasText, provided by the CanvasText$Typings extension

getter/setter pair
filter String

Available on CanvasFilters, provided by the CanvasFilters$Typings extension

MDN Reference
getter/setter pair
font String

Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension

MDN Reference
getter/setter pair
fontKerning CanvasFontKerning

Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension

MDN Reference
getter/setter pair
getImageData ImageData Function(num, num, num, num, [ImageDataSettings?])

Available on CanvasImageData, provided by the CanvasImageData$Typings extension

getter/setter pair
getLineDash List<num> Function()

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

getter/setter pair
getTransform DOMMatrix Function()

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

getter/setter pair
globalAlpha num

Available on CanvasCompositing, provided by the CanvasCompositing$Typings extension

MDN Reference
getter/setter pair
globalCompositeOperation GlobalCompositeOperation

Available on CanvasCompositing, provided by the CanvasCompositing$Typings extension

MDN Reference
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
imageSmoothingEnabled bool

Available on CanvasImageSmoothing, provided by the CanvasImageSmoothing$Typings extension

MDN Reference
getter/setter pair
imageSmoothingQuality ImageSmoothingQuality

Available on CanvasImageSmoothing, provided by the CanvasImageSmoothing$Typings extension

MDN Reference
getter/setter pair
isPointInPath → ({bool Function(num x, num y, [CanvasFillRule? fillRule]) $1, bool Function(Path2D path, num x, num y, [CanvasFillRule? fillRule]) $2})

Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension

Overload accessor: $1, $2
no setter
isPointInStroke → ({bool Function(num x, num y) $1, bool Function(Path2D path, num x, num y) $2})

Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension

Overload accessor: $1, $2
no setter
lineCap CanvasLineCap

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

MDN Reference
getter/setter pair
lineDashOffset num

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

MDN Reference
getter/setter pair
lineJoin CanvasLineJoin

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

MDN Reference
getter/setter pair
lineTo ↔ void Function(num, num)

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
lineWidth num

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

MDN Reference
getter/setter pair
measureText TextMetrics Function(String)

Available on CanvasText, provided by the CanvasText$Typings extension

getter/setter pair
miterLimit num

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

MDN Reference
getter/setter pair
moveTo ↔ void Function(num, num)

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
putImageData → ({void Function(ImageData imagedata, num dx, num dy) $1, void Function(ImageData imagedata, num dx, num dy, num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight) $2})

Available on CanvasImageData, provided by the CanvasImageData$Typings extension

Overload accessor: $1, $2
no setter
quadraticCurveTo ↔ void Function(num, num, num, num)

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
rect ↔ void Function(num, num, num, num)

Available on CanvasPath, provided by the CanvasPath$Typings extension

getter/setter pair
reset ↔ void Function()

Available on CanvasState, provided by the CanvasState$Typings extension

getter/setter pair
resetTransform ↔ void Function()

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

getter/setter pair
restore ↔ void Function()

Available on CanvasState, provided by the CanvasState$Typings extension

getter/setter pair
rotate ↔ void Function(num)

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

getter/setter pair
roundRect → ({void Function(num x, num y, num w, num h, [Object? radii]) $1, void Function(num x, num y, num w, num h, [Object? radii]) $2})

Available on CanvasPath, provided by the CanvasPath$Typings extension

Overload accessor: $1, $2
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
save ↔ void Function()

Available on CanvasState, provided by the CanvasState$Typings extension

getter/setter pair
scale ↔ void Function(num, num)

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

getter/setter pair
setLineDash → ({void Function(List<num> segments) $1, void Function(Iterable<num> segments) $2})

Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension

Overload accessor: $1, $2
no setter
setTransform → ({void Function([DOMMatrix2DInit? transform]) $1, void Function(num a, num b, num c, num d, num e, num f) $2})

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

Overload accessor: $1, $2
no setter
shadowBlur num

Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension

MDN Reference
getter/setter pair
shadowColor String

Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension

MDN Reference
getter/setter pair
shadowOffsetX num

Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension

MDN Reference
getter/setter pair
shadowOffsetY num

Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension

MDN Reference
getter/setter pair
stroke → ({void Function() $1, void Function(Path2D path) $2})

Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension

Overload accessor: $1, $2
no setter
strokeRect ↔ void Function(num, num, num, num)

Available on CanvasRect, provided by the CanvasRect$Typings extension

getter/setter pair
strokeStyle Object

Available on CanvasFillStrokeStyles, provided by the CanvasFillStrokeStyles$Typings extension

MDN Reference
getter/setter pair
strokeText ↔ void Function(String, num, num, [num?])

Available on CanvasText, provided by the CanvasText$Typings extension

getter/setter pair
textAlign CanvasTextAlign

Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension

MDN Reference
getter/setter pair
textBaseline CanvasTextBaseline

Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension

MDN Reference
getter/setter pair
transform ↔ void Function(num, num, num, num, num, num)

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

getter/setter pair
translate ↔ void Function(num, num)

Available on CanvasTransform, provided by the CanvasTransform$Typings extension

getter/setter pair

Methods

drawImage(Object image, num sx, num sy, num sw, num sh, num dx, num dy, num dw, num dh) → void

Available on CanvasDrawImage, provided by the CanvasDrawImage$Typings extension

MDN Reference
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited