Paolo
Paolo

Reputation: 2472

Draw circular sector

I want to draw a circular sector. I saw here how to do a circle, which is pretty obvious. What is the best way to draw a circular sector?

Upvotes: 5

Views: 8243

Answers (2)

Gabriel Negut
Gabriel Negut

Reputation: 13960

Unfortunately, there isn't a method to do what you want, but you can use drawArc and drawLine. Some info on how to compute the necessary coordinates can be found in this article.

Upvotes: 1

Jave
Jave

Reputation: 31846

I assume you are looking for something like canvas.drawArc() ?

Upvotes: 9

Related Questions