@JsType(isNative=true, name="CanvasRenderingContext2D", namespace="<global>") public class CanvasRenderingContext2D extends Object
Constructor and Description |
---|
CanvasRenderingContext2D() |
@JsProperty(name="canvas") public HTMLCanvasElement getCanvas()
@JsProperty(name="currentTransform") public SVGMatrix getCurrentTransform()
@JsOverlay public final Direction getDirection()
@JsOverlay public final CanvasRenderingContext2D setDirection(Direction direction)
@JsOverlay public final CanvasRenderingContext2D setFillStyle(Color color)
@JsProperty(name="lineWidth") public double getLineWidth()
@JsOverlay public final CanvasRenderingContext2D setLineWidth(double lineWidth)
@JsProperty(name="strokeStyle") public String getStrokeStyle()
@JsOverlay public final CanvasRenderingContext2D setStrokeStyle(Color color)
@JsOverlay public final CanvasRenderingContext2D beginPath()
@JsOverlay public final CanvasRenderingContext2D clearRect(double x, double y, double width, double height)
public ImageData createImageData(int width, int height)
@JsOverlay public final CanvasRenderingContext2D fill()
@JsOverlay public final CanvasRenderingContext2D fillRect(double x, double y, double width, double height)
@JsOverlay public final CanvasRenderingContext2D lineTo(double x, double y)
@JsOverlay public final CanvasRenderingContext2D moveTo(double x, double y)
@JsOverlay public final CanvasRenderingContext2D putImageData(ImageData imageData, int x, int y)
@JsOverlay public final CanvasRenderingContext2D rect(double x, double y, double width, double height)
@JsOverlay public final CanvasRenderingContext2D stroke()
@JsOverlay public final CanvasRenderingContext2D scale(int scale)
scaleX
- scaleY
- @JsOverlay public final CanvasRenderingContext2D scale(int scaleX, int scaleY)
scaleX
- scaleY
- Copyright © 2018 Xalys. All rights reserved.