标签:andorid 二维绘图
Path类可以预先在View上将N个点连成一条"路径",然后调用Canvas的drawPath(path,paint)即可沿着路径绘制图形
Android还为路径绘制提供了PathEffect来定义绘制效果,PathEffect包含如下子类
ComposePathEffect
CornerPathEffect
DashPathEffect
DiscretePathEffect
PathDashPathEffect
SumPathEffect
下面的示例将会逐一使用上面的绘制效果
效果如下
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:andorid 二维绘图
原文地址:http://blog.csdn.net/guomutian911/article/details/48023087