Paint的设置方法

setAntiAlias:这是画笔的锯齿效

setColor

setARGB

setAlpha

setTextSize

setStyle

setStrokeWidth

getColor

getAlpha

Canvas绘制常见图形的方法

1,绘制直线

左上角是0.0点

drawLine(float startX,float startY,float stopX,float stopY,Paint paint)

2,绘制矩形

drawRect(float left,float top,float right,float bottom,Paint paint)

3,绘制圆形

drawCircle(float cx,float cy,float radius,Paint paint)

posted on 2015-08-24 23:12  shininguang  阅读(111)  评论(0编辑  收藏  举报