PaintRenderingContext2D

注释
  • @Native("PaintRenderingContext2D")

属性

currentTransform Matrix?
getter/setter 对
fillStyle Object?
getter/setter 对
filter String?
getter/setter 对
globalAlpha num?
getter/setter 对
globalCompositeOperation String?
getter/setter 对
hashCode int
此对象的哈希码。
无setter继承
imageSmoothingEnabled bool?
getter/setter 对
imageSmoothingQuality String?
getter/setter 对
lineCap String?
getter/setter 对
lineDashOffset num?
getter/setter 对
lineJoin String?
getter/setter 对
lineWidth num?
getter/setter 对
miterLimit num?
getter/setter 对
runtimeType Type
对象运行时类型的表示。
无setter继承
shadowBlur num?
getter/setter 对
shadowColor String?
getter/setter 对
shadowOffsetX num?
getter/setter 对
shadowOffsetY num?
getter/setter 对
strokeStyle Object?
getter/setter 对

方法

arc(num x, num y, num radius, num startAngle, num endAngle, bool? anticlockwise) → void
arcTo(数字 x1, 数字 y1, 数字 x2, 数字 y2, 数字 radius) → void
beginPath() → void
bezierCurveTo(数字 cp1x, 数字 cp1y, 数字 cp2x, 数字 cp2y, 数字 x, 数字 y) → void
clearRect(数字 x, 数字 y, 数字 width, 数字 height) → void
clip([动态 path_OR_winding, 字符串? winding]) → void
closePath() → void
createLinearGradient(数字 x0, 数字 y0, 数字 x1, 数字 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
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
moveTo(num x, num y) → void
noSuchMethod(Invocation invocation) → dynamic
当访问不存在的方法或属性时调用。
继承
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
toString() String
此对象的字符串表示。
继承
transform(num a, num b, num c, num d, num e, num f) → void
translate(num x, num y) → void

运算符

operator ==(Object other) bool
等价运算符。
继承