Circle with dash lines

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
foruforewer
Posts: 26
Joined: 2011-02-08T04:37:21-07:00
Authentication code: 8675308

Circle with dash lines

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Circle with dash lines

Post 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
foruforewer
Posts: 26
Joined: 2011-02-08T04:37:21-07:00
Authentication code: 8675308

Re: Circle with dash lines

Post by foruforewer »

Than you very much for your reply and reference
Post Reply