draw arrow

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
galv
Posts: 62
Joined: 2010-05-23T17:35:59-07:00
Authentication code: 8675308

draw arrow

Post by galv »

I have a -draw rectangle and I want to draw an arrow pointing at it and having a caption near the arrow.
How would I do that?

Example:
-------------
|rectangle| <------- Caption
-------------
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: draw arrow

Post by fmw42 »

draw a rectangle, draw a line and draw a "<" character at the end of the line or a filled triangle at the end of the line or an arrowhead icon at the end of the line. see http://www.imagemagick.org/Usage/draw/

you will need to specify the individual coordinates for each

I don't believe that MVG has an arrow primitive. see http://www.imagemagick.org/script/magic ... aphics.php

But you can fake as above. See http://www.imagemagick.org/Usage/draw/#arrows
Post Reply