用canvers.draw方法是可以畫(huà)出豎線但是如何把上面的圓形畫(huà)出?如圖中游標(biāo)
小伙看你根骨奇佳,潛力無(wú)限,來(lái)學(xué)PHP伐。
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.