摘要: bezier.gif Path类中提供了画贝塞尔曲线的方法:quadTo()和cubicTo(),两者都是二阶贝塞尔曲线,cubicTo()方法相比于quadTo(),多传了一个初始点坐标 path = new Path(); path.moveTo(100, 100); path.quadTo(c 阅读全文
posted @ 2020-01-20 17:09 aruba_233 阅读(28) 评论(0) 推荐(0)
摘要: path的op()方法是把自身和另外一条path中的区域做相应的处理,传入参数有5种模式 Path path1 = new Path(); path1.addCircle(150, 150, 100, Path.Direction.CW); Path path2 = new Path(); path 阅读全文
posted @ 2020-01-20 16:38 aruba_233 阅读(90) 评论(0) 推荐(0)
摘要: FillType是对一条path中的区域做相应的处理,使用setFillType()方法,传入参数有4种模式,并且Paint的style必须为FILL或FILL_AND_STROKE Path path = new Path(); path.offset(100, 100); path.addCir 阅读全文
posted @ 2020-01-20 16:19 aruba_233 阅读(70) 评论(0) 推荐(0)