Interface CanvasRenderingContext2D

All Superinterfaces:
OpaqueReferenceType

public interface CanvasRenderingContext2D extends OpaqueReferenceType
  • Method Details

    • setGlobalCompositeOperation

      void setGlobalCompositeOperation(String type)
    • setFillStyle

      void setFillStyle(String aStyle)
    • setStrokeStyle

      void setStrokeStyle(String aStyle)
    • fillRect

      void fillRect(float x, float y, float width, float height)
    • save

      void save()
    • restore

      void restore()
    • translate

      void translate(float aX, float aY)
    • scale

      void scale(float aX, float aY)
    • setLineWidth

      void setLineWidth(float aWidth)
    • rotate

      void rotate(float aAngleInRadians)
    • beginPath

      void beginPath()
    • closePath

      void closePath()
    • moveTo

      void moveTo(float aX, float aY)
    • lineTo

      void lineTo(float aX, float aY)
    • arc

      void arc(double x, double y, double radius, double startAngle, double endAngle, boolean anticlockwise)
    • stroke

      void stroke()
    • fill

      void fill()
    • rect

      void rect(int x, int y, int width, int height)
    • drawImage

      void drawImage(CanvasImageSource image, int sx, int sy)
    • drawImage

      void drawImage(CanvasImageSource image, int sx, int sy, int sWidth, int sHeight, int dx, int dy, int dWidth, int dHeight)
    • getImageData

      void getImageData(int sx, int sy, int sw, int sh)
    • clearRect

      void clearRect(int x, int y, int width, int height)