[EMAIL PROTECTED] on  wrote...
| 
| I'm drawing a solid line using the following:
| 
| $image->Draw(primitive=>line,
|              stroke=>black,
|              strokewidth=>5,
|              points=>"$StartX,$StartY $StopX,$StopY");
| 
| However, I'd like to replace the solid line with a "dot-dash" line.  By 
| that I mean a line of dots and dashes, preferably starting and ending 
| with a dot;  for instance, "dot dash dot dash dot."
| I'd also like to determine the dot size relative to the dash.
| 
| Is this possible?
| 
Yes... All of that except ending the line in a dot.
There is no way to determine where in the pattern the line will end.

The function you want is stroke-dasharray
See http://www.cit.gu.edu.au/~anthony/draw/#mvg_settings
for examples of the major drawing and line settings.


If you are only drawing lines, then I would also turn off 'fill' or you
will get a 'filled' line with a single pixel fill color line underneath
the line.

See:  Drawing Lines, Line Width and Stroke
  http://imagemagick.org/Usage/draw/#strokewidth

Also note that strokewith is a floating point number, as it can be
scaled using other MVG drawing options.

  Anthony Thyssen ( System Programmer )    <[EMAIL PROTECTED]>
 -----------------------------------------------------------------------------
    Science is based on not knowing everything, but it does know somethings.
                                 -- Terry Pratchett, ``Science of Diskworld''
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to