W3cubDocs

/Dart 2

OffscreenCanvasRenderingContext2D class

Annotations
  • @Native("OffscreenCanvasRenderingContext2D")

Properties

canvasOffscreenCanvas
final
directionString
read / write
fillStyleObject
read / write
filterString
read / write
fontString
read / write
globalAlphanum
read / write
globalCompositeOperationString
read / write
imageSmoothingEnabledbool
read / write
imageSmoothingQualityString
read / write
lineCapString
read / write
lineDashOffsetnum
read / write
lineJoinString
read / write
lineWidthnum
read / write
miterLimitnum
read / write
shadowBlurnum
read / write
shadowColorString
read / write
shadowOffsetXnum
read / write
shadowOffsetYnum
read / write
strokeStyleObject
read / write
textAlignString
read / write
textBaselineString
read / write
hashCodeint
read-only, inherited
The hash code for this object. [...]
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) → void
arcTo(num x1, num y1, num x2, num y2, num radius) → void
beginPath() → void
bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) → void
clearRect(num x, num y, num width, num height) → void
clip([Path2D path ]) → void
closePath() → void
commit() → Future
createImageData(dynamic data_OR_imagedata_OR_sw, [ int sh_OR_sw, dynamic imageDataColorSettings_OR_sh, Map imageDataColorSettings ]) → ImageData
createLinearGradient(num x0, num y0, num x1, num y1) → CanvasGradient
createPattern(dynamic image, String repetitionType) → CanvasPattern
createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) → CanvasGradient
drawImage(dynamic image, num sx_OR_x, num sy_OR_y, [ num sw_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh ]) → void
ellipse(num x, num y, num radiusX, num radiusY, num rotation, num startAngle, num endAngle, bool anticlockwise) → void
fill([dynamic path_OR_winding, String winding ]) → void
fillRect(num x, num y, num width, num height) → void
fillText(String text, num x, num y, [ num maxWidth ]) → void
getImageData(int sx, int sy, int sw, int sh) → ImageData
getLineDash() → List<num>
isPointInPath(dynamic path_OR_x, num x_OR_y, [ dynamic winding_OR_y, String winding ]) → bool
isPointInStroke(dynamic path_OR_x, num x_OR_y, [ num y ]) → bool
lineTo(num x, num y) → void
measureText(String text) → TextMetrics
moveTo(num x, num y) → void
putImageData(ImageData imagedata, int dx, int dy, [ int dirtyX, int dirtyY, int dirtyWidth, int dirtyHeight ]) → void
quadraticCurveTo(num cpx, num cpy, num x, num y) → void
rect(num x, num y, num width, num height) → void
resetTransform() → void
restore() → void
rotate(num angle) → void
save() → void
scale(num x, num y) → void
setLineDash(List<num> dash) → void
setTransform(num a, num b, num c, num d, num e, num f) → void
stroke([Path2D path ]) → void
strokeRect(num x, num y, num width, num height) → void
strokeText(String text, num x, num y, [ num maxWidth ]) → void
transform(num a, num b, num c, num d, num e, num f) → void
translate(num x, num y) → void
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/OffscreenCanvasRenderingContext2D-class.html