This may be a well-known phenomena amomgst ImageMagick
aficionados, however I have not noticed any reference
to it, so maybe there are others like me.

Use the following command to create an image with parallel
lines.

Only pixel widths of odd numbers appear. If an even number
is specified, the odd number above is used.  Possibly this has 
been done possibly to ensure the line terminations are on the 
centre pixel of the line

With a width of 2 specified, there seems to be an attempt
at antialiasing going on. Its appearance is different
depending upon whether +antialias is used or not.

################ Drawing lines of different widths #############

convert -size 100x100 xc:white +antialias \
        -stroke black \
        -linewidth 1  \
        -draw 'line 25,10 74,10' \
        -linewidth 2  \
        -draw 'line 25,20 74,20' \
        -linewidth 3  \
        -draw 'line 25,30 74,30' \
        -linewidth 4 \
        -draw 'line 25,40 74,40' \
        -linewidth 5 \
        -draw 'line 25,50 74,50' \
        A.gif

# Note that even line widths are not possible and are made equal to
# the next odd width. A line width of 2 results in an extra 1x1 pixel
# at each end - antialiased if +antialias is not used.


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to