`
gerrard_ok
  • 浏览: 146816 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

画图草稿

 
阅读更多

 

paint.setAntiAlias(true);

paint.setDither(true);

paint.setStrokeWidth(5);

paint.setStyle(Paint.Style.STROKE);

paint.setColor(Color.BLUE);

paint.setStrokeJoin(Paint.Join.ROUND);

        paint.setStrokeCap(Paint.Cap.ROUND);

 //       paint.setXfermode(new PorterDuffXfermode(Mode.DST_OUT));

canvas.drawLine(10, 10, 130, 150, paint);

Path path = new Path();

path.reset();

path.moveTo(10, 100);

path.quadTo(30, 70, 80, 30);

path.quadTo(80, 30,100,20);

path.quadTo(100, 20,190,10);

// path.quadTo(130, 6, 160, 40);

// path.cubicTo(10, 100, 30, 50, 50, 10);

Path path1 = new Path();

path1.reset();

path1.moveTo(80, 30);

path1.quadTo(100, 20,190,10);

Paint paint1 = new Paint();

paint1.setAntiAlias(true);

paint1.setStyle(Paint.Style.STROKE);

paint1.setColor(Color.YELLOW);

canvas.drawText("A", 10, 100, paint1);

canvas.drawText("A", 30, 50, paint1);

canvas.drawText("A", 60, 30, paint1);

canvas.drawText("A", 100, 20, paint1);

canvas.drawText("A", 130, 10, paint1);

canvas.drawPath(path, paint);

canvas.drawPath(path1, paint1);

 

http://blog.csdn.net/listening_music/article/details/6581716

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics