Draw Circle with center and radius

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

The four values are the X and y of the center and teh x and y of a point on the edge of the circle.

If you have a radius you can just add the redail to either the x or y of the center value to get a point on the edge.

Eg circle at 50,50 with 30 pixel radius...
add 30 to the x value of the center gives 80 so the draw is...

-draw 'circle 50,50 80,50'

For more info see Im draw primatives
http://www.cit.gu.edu.au/~anthony/graph ... primatives
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply