java - canvas的问题,如何画出组合图形
伊谢尔伦
伊谢尔伦 2017-04-18 10:56:35
0
2
517

用canvers.draw方法是可以画出竖线但是如何把上面的圆形画出?如图中游标

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
洪涛

Now that you can draw a line, you can then use canvas.drawCircle to draw a circle, which will let you pass in several parameters, such as center coordinates, radius, etc., and then you only need to calculate it based on the position of the line. Just find out the coordinates of your circle center and the appropriate radius, and you’re good to go

阿神

Can be used

canvas.drawCircle(500,500,400,mPaint);

There are four parameters for drawing a circle, the first two are the coordinates of the center of the circle, the third is the radius, and the last one is the brush.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template