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.

解决方案 »

  1.   

    路径绘制。。              Path path2=new Path();   
                  path2.moveTo(90, 330);   
                  path2.lineTo(150,330);   
                  path2.lineTo(120,270);   
                  path2.close();   
                  canvas.drawPath(path2, paint);   
    画一个三角型i还有一些
    如 drawTextOnPath 绘制路径文字推荐文章
    http://blog.csdn.net/JavaTiger427/article/details/6034555
      

  2.   

    路径类啊,参考学习 Android游戏开发之旅五 Path和Typeface 其实有点像ps中的钢笔工具,很有用的
      

  3.   

    Path类封装了多个化合物(轮廓)的直线段,二次曲线,三次曲线组成的几何路径。它可以绘制canvas.drawPath(路径,油漆),填补或抚摸(基础上油漆的风格),或可用于剪切或绘制路径上的文本。
      

  4.   


    如何获取?Path类中没有提供获得坐标的方法啊。
      

  5.   


    想过了,不知道怎么获取,如果去用算法描述这条路径的话,那就不如直接画,不用path了。