OffscreenCanvasRenderingContext2D class
- Implemented types
- Available extensions
- CanvasCompositing$Typings
- CanvasDrawImage$Typings
- CanvasDrawPath$Typings
- CanvasFillStrokeStyles$Typings
- CanvasFilters$Typings
- CanvasImageData$Typings
- CanvasImageSmoothing$Typings
- CanvasPath$Typings
- CanvasPathDrawingStyles$Typings
- CanvasRect$Typings
- CanvasShadowStyles$Typings
- CanvasState$Typings
- CanvasText$Typings
- CanvasTextDrawingStyles$Typings
- CanvasTransform$Typings
- OffscreenCanvasRenderingContext2D$Typings
- 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, $2no 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, $2no 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 Referencegetter/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, $2no 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 Referencegetter/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 Referencegetter/setter pair - font ↔ String
-
Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension
MDN Referencegetter/setter pair - fontKerning ↔ CanvasFontKerning
-
Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension
MDN Referencegetter/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 Referencegetter/setter pair - globalCompositeOperation ↔ GlobalCompositeOperation
-
Available on CanvasCompositing, provided by the CanvasCompositing$Typings extension
MDN Referencegetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- imageSmoothingEnabled ↔ bool
-
Available on CanvasImageSmoothing, provided by the CanvasImageSmoothing$Typings extension
MDN Referencegetter/setter pair - imageSmoothingQuality ↔ ImageSmoothingQuality
-
Available on CanvasImageSmoothing, provided by the CanvasImageSmoothing$Typings extension
MDN Referencegetter/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, $2no 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, $2no setter - lineCap ↔ CanvasLineCap
-
Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension
MDN Referencegetter/setter pair - lineDashOffset ↔ num
-
Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension
MDN Referencegetter/setter pair - lineJoin ↔ CanvasLineJoin
-
Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension
MDN Referencegetter/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 Referencegetter/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 Referencegetter/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, $2no 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, num, num, num, [Object?])
-
Available on CanvasPath, provided by the CanvasPath$Typings extension
getter/setter pair - 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> ) -
Available on CanvasPathDrawingStyles, provided by the CanvasPathDrawingStyles$Typings extension
getter/setter pair - 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, $2no setter - shadowBlur ↔ num
-
Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension
MDN Referencegetter/setter pair - shadowColor ↔ String
-
Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension
MDN Referencegetter/setter pair - shadowOffsetX ↔ num
-
Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension
MDN Referencegetter/setter pair - shadowOffsetY ↔ num
-
Available on CanvasShadowStyles, provided by the CanvasShadowStyles$Typings extension
MDN Referencegetter/setter pair - stroke → ({void Function() $1, void Function(Path2D path) $2})
-
Available on CanvasDrawPath, provided by the CanvasDrawPath$Typings extension
Overload accessor: $1, $2no 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 Referencegetter/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 Referencegetter/setter pair - textBaseline ↔ CanvasTextBaseline
-
Available on CanvasTextDrawingStyles, provided by the CanvasTextDrawingStyles$Typings extension
MDN Referencegetter/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