[magick-users] GetFillColor and extract_info

Anthony Thyssen anthony at griffith.edu.au
Thu Dec 21 00:15:08 CST 2006


"Rick Mabry" on  wrote...
| > Setting a tile pattern in this way just does not seem effect the offset
| > of the pattern.
|
| This is  a bit  beside the point, but even doing it with a roll is awkward
| from the command line; I haven't found a way to do it as a one-liner. I
| thought this would work but it doesn't:
|
| convert -size 640x480 xc:blue ( -tile logo: -roll -200+100 ) \
|       -draw "polygon 20,20 619,20 619,459 20,459" drawtest.png
|
| In any case, in PerlMagick I can do a RollImage prior to the DrawImage but it
| is still not the best way, since it makes no sense to have to move pixels
| around  in the $tile image. A drawing offset is just right, very efficient.
|
FYI...
  IM Examples, Setting a Image using a in-memory Image
    http://www.cit.gu.edu.au/~anthony/graphics/imagick6/canvas/#tile_memory

And here is the correct way of doing the 'rolled' tile...

   convert  logo: -roll -200+100 -write mpr:tile +delete \
            -size 640x480 xc:blue  -tile mpr:tile \
            -draw "polygon 20,20 619,20 619,459 20,459" \
            drawtest.png


  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
              Seen one kite out of sight, seen 'em all
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list