标题Canvas常用API
public void drawBitmap(Bitmap bitmap, float left, float top, Paint paint)
在指定坐标绘制位图
public void drawLine(float startX, float startY, float stopX, float stopY,Paint paint)
根据给定的起始点和结束点之间绘制连线
void drawPath(Path path,Paint paint);
根据给定的path绘制连线
void drawPoint(float x, float y, Paint paint);
根据给定的坐标,绘制点
void drawText(String text, int start, int end , Paint paint);
根据给定坐标,绘制文字
public void drawRect(float left, float top, float right, float bottom, Paint paint)
根据给定坐标绘制矩形
public void drawCircle(float cx, float cy, float radius, Paint paint)
根据给定坐标绘制圆形
public void translate(float dx, float dy)
平移画布
public void scale(float sx, float sy)
缩放操作
public void rotate(float degrees)
旋转操作
public void skew(float sx, float sy)
倾斜操作
public boolean clipRect(float left, float top, float right, float bottom)
切割操作
·····