OffscreenCanvasRenderingContext2D

注释
  • @Native("OffscreenCanvasRenderingContext2D")

属性

canvas OffscreenCanvas?
无设置器
direction String?
获取/设置对
fillStyle Object?
获取/设置对
filter String?
获取/设置对
font String?
获取/设置对
globalAlpha num?
获取/设置对
globalCompositeOperation String?
获取/设置对
hashCode int
此对象的哈希码。
无设置器继承
imageSmoothingEnabled bool?
获取/设置对
imageSmoothingQuality String?
获取/设置对
lineCap String?
获取/设置对
lineDashOffset num?
获取/设置对
lineJoin String?
获取/设置对
lineWidth num?
获取/设置对
miterLimit num?
获取/设置对
runtimeType Type
对象运行时类型的表示。
无设置器继承
shadowBlur num?
获取/设置对
shadowColor String?
获取/设置对
shadowOffsetX num?
获取/设置对
shadowOffsetY num?
获取/设置对
strokeStyle Object?
获取/设置对
textAlign String?
获取/设置对
textBaseline String?
获取/设置对

方法

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(动态 data_OR_imagedata_OR_sw, [整数? sh_OR_sw, 动态 imageDataColorSettings_OR_sh, Map? imageDataColorSettings]) ImageData
createLinearGradient(数字 x0, 数字 y0, 数字 x1, 数字 y1) CanvasGradient
createPattern(动态 image, 字符串 repetitionType) CanvasPattern?
createRadialGradient(数字 x0, 数字 y0, 数字 r0, 数字 x1, 数字 y1, 数字 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
noSuchMethod(Invocation invocation) → dynamic
访问不存在的属性或方法时触发。
继承
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
toString() String
此对象的字符串表示形式。
继承
transform(num a, num b, num c, num d, num e, num f) → void
translate(num x, num y) → void

运算符

操作符 ==(Object other) bool
相等运算符。
继承