Thanks once again to Anthony. My previous example demonstrated a complete
misunderstanding of "ImageMagick: Convert, Edit, and Compose Images" in
relation to aspects of the -draw option. ImagMagick is very
powerful but the result is a bewildering array of commands and options,
beyond the range of normal mortal's time and effort.
So I revise the`vanilla' version of creating and using
a standard arrow head:
# Locate the arrow head at 0,0, draw the standard, rotate it,
# shift it to where it is required and scale it to the size required.
# Here the arrow tail is incorporated in the head so that
# both are rotated and scaled together. Performing this individually
# requires a complete extra option or finding the slide rule
# to calculate the coordinates for arbitrary angles (eg 37 deg).
points="0,150 0,100 41,100 0,0 -41,100 0,100"
convert -size 300x300 xc:skyblue \
-draw "translate 50,100 rotate -45 scale 0.15,0.15 polyline
$points" \
show:
For this particular case, I fail to see that the SVG version is superior.
> Of course the above [see previous post] is now being added to the
> Draw Symbols section of IM Examples (give it a few hours)
When you do this Anthony, please incorporate the tail in at least one
example so that duplicate commands and slide rule calculations will not be
required.
Damien
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users