Is it possible to draw polygons in imagemagick?

Ilya Zakharevich <[email protected]>
Newsgroups gmane.comp.video.image-magick.bugs
Organization U.C. Berkeley Math. Department.
Message-ID <[email protected]>
I'm trying to draw a polygon with given vertices; however, Image
Magick adds an extra stroke of width 1 about the polygon, so, in
effect, the vertices are moved outside...  Is it possible to do this
now?

If not, then I think such a way must be added.  Something like an
"extra-magic" -strokewidth -1, or some such...

===

Here is what I tried:

 convert -size 4x4 xc:white -fill black -stroke none -strokewidth 0
    -draw "polygon 1,1 1,2 2,2 2,1" -depth 8 txt:-

but the result is a 2x2 square, not a 1x1 (possibly antialiased) square...

Thanks,
Ilya
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.