How would I draw a circle on a white bg?

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
c5c5

How would I draw a circle on a white bg?

Post by c5c5 »

I need to draw a circle on a white bg. It needs to be 2 1/2 inches in diameter.

Thanks
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: How would I draw a circle on a white bg?

Post by Bonzo »

To get the circle 2 1/2" you will have to add a density and work the dimensions out from that.

Code: Select all

convert -size 200x200 xc:white -stroke black -strokewidth 1 -fill none -draw "circle 100,100 100,0 " circle.png
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: How would I draw a circle on a white bg?

Post by el_supremo »

Run this:

Code: Select all

convert -density 300x300 -size 900x900 xc:white -stroke black -strokewidth 1 -fill none -draw "circle 450,450 825,450 " circle_dpi.png
and then print circle_dpi.png at 300dpi.

Pete
c5c5

Re: How would I draw a circle on a white bg?

Post by c5c5 »

Thank you both, I will try what you suggested. :D
el_supremo
Posts: 1015
Joined: 2005-03-21T21:16:57-07:00

Re: How would I draw a circle on a white bg?

Post by el_supremo »

I forgot the units!
convert -units pixelsperinch -density 300x300 -size 900x900 xc:white -stroke black -strokewidth 1 -fill none -draw "circle 450,450 825,450 " circle_dpi.png

Pete
Post Reply