Package de.mirkosertic.bytecoder.api.web
Interface CanvasRenderingContext2D
- All Superinterfaces:
OpaqueReferenceType
-
Method Summary
Modifier and TypeMethodDescriptionvoid
arc
(double x, double y, double radius, double startAngle, double endAngle, boolean anticlockwise) void
void
clearRect
(int x, int y, int width, int height) void
void
drawImage
(CanvasImageSource image, int sx, int sy) void
drawImage
(CanvasImageSource image, int sx, int sy, int sWidth, int sHeight, int dx, int dy, int dWidth, int dHeight) void
fill()
void
fillRect
(float x, float y, float width, float height) void
getImageData
(int sx, int sy, int sw, int sh) void
lineTo
(float aX, float aY) void
moveTo
(float aX, float aY) void
rect
(int x, int y, int width, int height) void
restore()
void
rotate
(float aAngleInRadians) void
save()
void
scale
(float aX, float aY) void
setFillStyle
(String aStyle) void
void
setLineWidth
(float aWidth) void
setStrokeStyle
(String aStyle) void
stroke()
void
translate
(float aX, float aY)
-
Method Details
-
setGlobalCompositeOperation
-
setFillStyle
-
setStrokeStyle
-
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
-
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)
-