`
bolutes
  • 浏览: 869738 次
文章分类
社区版块
存档分类
最新评论

Android Path 使用

 
阅读更多

项目中经常会用到绘图方面的知识,之前一直对Path这个类的使用不是很清楚,现在系统的使用和总结一下。首先看一下API中的解释:

The Path class encapsulates compound (multiple contour) geometric paths consisting of straight line segments, quadratic curves, and cubic curves. It can be drawn with canvas.drawPath(path, paint), either filled or stroked (based on the paint's Style), or it can be used for clipping or to draw text on a path.

为程序添加水印的效果,就是通过onDraw()然后根据Path画出来的

后一种效果是先画水印然后画图片,所以画的时候是有顺序的:




分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics