标签:map circle tst 体会 pat 端点 ddc resources int
Paint.setStrokeCap(cap)
可以设置点的形状,但这个方法并不是专门用来设置点的形状的,而是一个设置线条端点形状的方法。端点有圆头 (ROUND
)、平头 (BUTT
) 和方头 (SQUARE
) 三种,具体会在下一节里面讲。Path path = new Path(); path.addCircle(250,300,100, Path.Direction.CCW); canvas.clipPath(path); Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.aa); canvas.drawBitmap(bitmap,100,100,paint); paint.setColor(Color.RED); paint.setStyle(Paint.Style.FILL); paint.setStrokeWidth(20); paint.setStrokeCap(Paint.Cap.ROUND); canvas.drawPoint(250,220,paint);
标签:map circle tst 体会 pat 端点 ddc resources int
原文地址:https://www.cnblogs.com/endian11/p/9583554.html