Draw a Bitmap in Arc center?
问题 In my Custom View, I draw multiple filled Arc s like this: canvas.drawArc(oval, startAngle, sweepAngle, true, sectorPaint); Now, I want to draw an icon on the center of the Arc. I started with this: Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.drawable.my_icon); canvas.drawBitmap(bitmap, pointX, pointY, null); //pointX & pointY ?? However, I don't know what should I set for pointX and pointY . Here is the data I have: Oval center coordinates and radius. startAngle and