Page 1 of 1

Circle with dash lines

Posted: 2011-07-18T02:06:34-07:00
by foruforewer
Dear friends,
I want to draw two circles, one green, and one black with dashed lines. I could generate two circles as per below command, but could not make dashed lines in black circle.

convert -size 250x250 xc:white -fill none -stroke green -strokewidth 3 -draw "circle 125,125 225,125" -fill none -stroke black -strokewidth 2 -draw "circle 125,125 %1,125" draw_circle1.bmp

Re: Circle with dash lines

Posted: 2011-07-18T10:31:11-07:00
by fmw42
try this:


convert -size 250x250 xc:white \
-fill none -stroke green -strokewidth 3 -draw "circle 125,125 225,125" \
-fill none -stroke black -strokewidth 2 -draw "stroke-dasharray 5 5 circle 125,125 200,125" \
draw_circle1.bmp

see stroke-dasharray at http://www.imagemagick.org/script/magic ... primitives

also examples at http://www.imagemagick.org/Usage/draw/#mvg_settings

Re: Circle with dash lines

Posted: 2011-07-18T21:53:24-07:00
by foruforewer
Than you very much for your reply and reference