public class Canvas extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
arc(float x,
float y,
float radius,
float startAngle,
float endAngle,
boolean anticlockwise) |
void |
arcTo(float x1,
float y1,
float x2,
float y2,
float radius) |
void |
beginPath() |
void |
bezierCurveTo(float cp1x,
float cp1y,
float cp2x,
float cp2y,
float x,
float y) |
void |
clearRect(float x,
float y,
float w,
float h) |
void |
closePath() |
static Canvas |
createCanvas(int width,
int height) |
void |
fill() |
int |
getHeight() |
int |
getWidth() |
boolean |
isPointInPath(float x,
float y) |
void |
lineTo(float x,
float y) |
void |
moveTo(float x,
float y) |
void |
quadraticCurveTo(float cpx,
float cpy,
float x,
float y) |
void |
rect(float x,
float y,
float w,
float h) |
void |
rotate(float angle) |
void |
scale(float x,
float y) |
void |
setHeight(int height) |
void |
setTransform(float m11,
float m12,
float m21,
float m22,
float dx,
float dy) |
void |
setWidth(int width) |
void |
transform(float m11,
float m12,
float m21,
float m22,
float dx,
float dy) |
void |
translate(float x,
float y) |
public static Canvas createCanvas(int width, int height)
public final int getWidth()
public final void setWidth(int width)
public final int getHeight()
public final void setHeight(int height)
public final void beginPath()
public final void closePath()
public final void moveTo(float x,
float y)
public final void lineTo(float x,
float y)
public final void quadraticCurveTo(float cpx,
float cpy,
float x,
float y)
public final void bezierCurveTo(float cp1x,
float cp1y,
float cp2x,
float cp2y,
float x,
float y)
public final void arcTo(float x1,
float y1,
float x2,
float y2,
float radius)
public final void rect(float x,
float y,
float w,
float h)
public final void clearRect(float x,
float y,
float w,
float h)
public final void arc(float x,
float y,
float radius,
float startAngle,
float endAngle,
boolean anticlockwise)
public final boolean isPointInPath(float x,
float y)
public final void fill()
public void scale(float x,
float y)
public void rotate(float angle)
public void translate(float x,
float y)
public void transform(float m11,
float m12,
float m21,
float m22,
float dx,
float dy)
public void setTransform(float m11,
float m12,
float m21,
float m22,
float dx,
float dy)
Copyright © 2018. All Rights Reserved.