What is the most direct way to draw a pie chart using ImageMagick in an existing image. For example, how would I draw a single slice given the following inputs?
- A center point (x,y)
- Radius
- Percent
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Create your pie wedge using SVG; I got my example from here:
Then, overlay that image using ImageMagick to your background image.
Note that you have to define your arcs with cartesian coordinates instead of radius, but the conversion should be fairly straightforward.