public class CanvasRenderingContext2D extends Objs
Objs.Constructor<T extends Objs>, Objs.Property<T>
Modifier | Constructor and Description |
---|---|
protected |
CanvasRenderingContext2D(Objs.Constructor<?> c,
Object js) |
Modifier and Type | Method and Description |
---|---|
static CanvasRenderingContext2D |
$as(Object obj) |
void |
arc(double x,
double y,
double radius,
double startAngle,
double endAngle) |
void |
arc(double x,
double y,
double radius,
double startAngle,
double endAngle,
Boolean anticlockwise) |
void |
arcTo(double x1,
double y1,
double x2,
double y2,
double radius) |
void |
beginPath() |
void |
bezierCurveTo(double cp1x,
double cp1y,
double cp2x,
double cp2y,
double x,
double y) |
HTMLCanvasElement |
canvas() |
void |
clearRect(double x,
double y,
double w,
double h) |
void |
clip() |
void |
clip(String fillRule) |
void |
closePath() |
ImageData |
createImageData(double imageDataOrSw) |
ImageData |
createImageData(double imageDataOrSw,
double sh) |
ImageData |
createImageData(ImageData imageDataOrSw) |
ImageData |
createImageData(ImageData imageDataOrSw,
double sh) |
CanvasGradient |
createLinearGradient(double x0,
double y0,
double x1,
double y1) |
CanvasPattern |
createPattern(HTMLCanvasElement image,
String repetition) |
CanvasPattern |
createPattern(HTMLImageElement image,
String repetition) |
CanvasPattern |
createPattern(HTMLVideoElement image,
String repetition) |
CanvasGradient |
createRadialGradient(double x0,
double y0,
double r0,
double x1,
double y1,
double r1) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY,
double width) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY,
double width,
double height) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY,
double canvasImageWidth) |
void |
drawImage(HTMLCanvasElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY,
double canvasImageWidth,
double canvasImageHeight) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY,
double width) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY,
double width,
double height) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY,
double canvasImageWidth) |
void |
drawImage(HTMLImageElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY,
double canvasImageWidth,
double canvasImageHeight) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY,
double width) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY,
double width,
double height) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY,
double canvasImageWidth) |
void |
drawImage(HTMLVideoElement image,
double offsetX,
double offsetY,
double width,
double height,
double canvasOffsetX,
double canvasOffsetY,
double canvasImageWidth,
double canvasImageHeight) |
void |
fill() |
void |
fill(String fillRule) |
void |
fillRect(double x,
double y,
double w,
double h) |
void |
fillText(String text,
double x,
double y) |
void |
fillText(String text,
double x,
double y,
double maxWidth) |
String |
font() |
ImageData |
getImageData(double sx,
double sy,
double sw,
double sh) |
Array<Number> |
getLineDash() |
Number |
globalAlpha() |
String |
globalCompositeOperation() |
Boolean |
isPointInPath(double x,
double y) |
Boolean |
isPointInPath(double x,
double y,
String fillRule) |
String |
lineCap() |
Number |
lineDashOffset() |
String |
lineJoin() |
void |
lineTo(double x,
double y) |
Number |
lineWidth() |
TextMetrics |
measureText(String text) |
Number |
miterLimit() |
void |
moveTo(double x,
double y) |
String |
msFillRule() |
Boolean |
msImageSmoothingEnabled() |
void |
putImageData(ImageData imagedata,
double dx,
double dy) |
void |
putImageData(ImageData imagedata,
double dx,
double dy,
double dirtyX) |
void |
putImageData(ImageData imagedata,
double dx,
double dy,
double dirtyX,
double dirtyY) |
void |
putImageData(ImageData imagedata,
double dx,
double dy,
double dirtyX,
double dirtyY,
double dirtyWidth) |
void |
putImageData(ImageData imagedata,
double dx,
double dy,
double dirtyX,
double dirtyY,
double dirtyWidth,
double dirtyHeight) |
void |
quadraticCurveTo(double cpx,
double cpy,
double x,
double y) |
void |
rect(double x,
double y,
double w,
double h) |
void |
restore() |
void |
rotate(double angle) |
void |
save() |
void |
scale(double x,
double y) |
void |
setLineDash(double[] segments) |
void |
setTransform(double m11,
double m12,
double m21,
double m22,
double dx,
double dy) |
Number |
shadowBlur() |
String |
shadowColor() |
Number |
shadowOffsetX() |
Number |
shadowOffsetY() |
void |
stroke() |
void |
strokeRect(double x,
double y,
double w,
double h) |
void |
strokeText(String text,
double x,
double y) |
void |
strokeText(String text,
double x,
double y,
double maxWidth) |
String |
textAlign() |
String |
textBaseline() |
void |
transform(double m11,
double m12,
double m21,
double m22,
double dx,
double dy) |
void |
translate(double x,
double y) |
$as, $cast, $delete, $get, $js, $set, create, create, defineProperties, defineProperty, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, newObject, newObject, preventExtensions, propertyIsEnumerable, seal, toLocaleString, toString, valueOf
public Objs.Property<HTMLCanvasElement> canvas
public Objs.Property<Union.A3<String,CanvasGradient,CanvasPattern>> fillStyle
public Objs.Property<String> font
public Objs.Property<Number> globalAlpha
public Objs.Property<String> globalCompositeOperation
public Objs.Property<String> lineCap
public Objs.Property<Number> lineDashOffset
public Objs.Property<String> lineJoin
public Objs.Property<Number> lineWidth
public Objs.Property<Number> miterLimit
public Objs.Property<String> msFillRule
public Objs.Property<Boolean> msImageSmoothingEnabled
public Objs.Property<Number> shadowBlur
public Objs.Property<String> shadowColor
public Objs.Property<Number> shadowOffsetX
public Objs.Property<Number> shadowOffsetY
public Objs.Property<Union.A3<String,CanvasGradient,CanvasPattern>> strokeStyle
public Objs.Property<String> textAlign
public Objs.Property<String> textBaseline
protected CanvasRenderingContext2D(Objs.Constructor<?> c, Object js)
public static CanvasRenderingContext2D $as(Object obj)
public HTMLCanvasElement canvas()
public String font()
public Number globalAlpha()
public String globalCompositeOperation()
public String lineCap()
public Number lineDashOffset()
public String lineJoin()
public Number lineWidth()
public Number miterLimit()
public String msFillRule()
public Boolean msImageSmoothingEnabled()
public Number shadowBlur()
public String shadowColor()
public Number shadowOffsetX()
public Number shadowOffsetY()
public String textAlign()
public String textBaseline()
public void arc(double x, double y, double radius, double startAngle, double endAngle, Boolean anticlockwise)
public void arc(double x, double y, double radius, double startAngle, double endAngle)
public void arcTo(double x1, double y1, double x2, double y2, double radius)
public void beginPath()
public void bezierCurveTo(double cp1x, double cp1y, double cp2x, double cp2y, double x, double y)
public void clearRect(double x, double y, double w, double h)
public void clip(String fillRule)
public void clip()
public void closePath()
public ImageData createImageData(double imageDataOrSw, double sh)
public ImageData createImageData(double imageDataOrSw)
public CanvasGradient createLinearGradient(double x0, double y0, double x1, double y1)
public CanvasPattern createPattern(HTMLImageElement image, String repetition)
public CanvasPattern createPattern(HTMLCanvasElement image, String repetition)
public CanvasPattern createPattern(HTMLVideoElement image, String repetition)
public CanvasGradient createRadialGradient(double x0, double y0, double r0, double x1, double y1, double r1)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth, double canvasImageHeight)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth, double canvasImageHeight)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth, double canvasImageHeight)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY)
public void drawImage(HTMLImageElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth)
public void drawImage(HTMLCanvasElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth)
public void drawImage(HTMLVideoElement image, double offsetX, double offsetY, double width, double height, double canvasOffsetX, double canvasOffsetY, double canvasImageWidth)
public void fill(String fillRule)
public void fill()
public void fillRect(double x, double y, double w, double h)
public void fillText(String text, double x, double y, double maxWidth)
public void fillText(String text, double x, double y)
public ImageData getImageData(double sx, double sy, double sw, double sh)
public Boolean isPointInPath(double x, double y)
public void lineTo(double x, double y)
public TextMetrics measureText(String text)
public void moveTo(double x, double y)
public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth, double dirtyHeight)
public void putImageData(ImageData imagedata, double dx, double dy)
public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX)
public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY)
public void putImageData(ImageData imagedata, double dx, double dy, double dirtyX, double dirtyY, double dirtyWidth)
public void quadraticCurveTo(double cpx, double cpy, double x, double y)
public void rect(double x, double y, double w, double h)
public void restore()
public void rotate(double angle)
public void save()
public void scale(double x, double y)
public void setLineDash(double[] segments)
public void setTransform(double m11, double m12, double m21, double m22, double dx, double dy)
public void stroke()
public void strokeRect(double x, double y, double w, double h)
public void strokeText(String text, double x, double y, double maxWidth)
public void strokeText(String text, double x, double y)
public void transform(double m11, double m12, double m21, double m22, double dx, double dy)
public void translate(double x, double y)
Copyright © 2018. All rights reserved.