[magick-users] How to draw a line?

Anthony Thyssen anthony at griffith.edu.au
Wed May 16 16:02:23 PDT 2007


"Sanjiv K. Bhatia" on  wrote...
| Can some kind soul provide me with code to draw a line in an image.  I
| have two points (x0,y0) and (x1,y1) and will like to draw a line from
| one point to the other in C.
| 
  convert logo: -draw 'stroke black stroke-width 2 line 50,370 610,70' x:

The logo: is a built in image, and x: output the result to X windows.

For more 'draw' commands (simple and complex) see...
   IM Examples, Draw
     http://www.imagemagick.org/Usage/draw/


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
      I don't make the rules... I just impliment them!
                                           -- Programmers Law of Policy
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list