[magick-users] DrawSetFillPatternURL problem

Anthony Thyssen anthony at griffith.edu.au
Wed Apr 25 16:34:09 PDT 2007


Boris Bartsyts on  wrote...
| hello,
| 
| i have the following php code (WandImage is a wrapper class):
| 
| ==========================================
| 
| $image = new WandImage(300, 100);
| 
| $image->pushPattern("pat", 0, 0, 30, 30);
| $image->setStrokeWidth(1);
| $image->setFillColor('#0c0');
| $image->setStrokeColor('#c00');
| $image->drawCircle(1, 1, 8);
| $image->popPattern();
| 
| $image->setFillPattern('#pat');
| 
| ==========================================
| 
| pop/push patter calls return true, so i'm assuming the pattern is
| created. however setFillPattern() call does not work and returns false.
| what's the syntax for the pattern id param? what could be the problem?
| 
| Bob
| 
| _______________________________________________
| Magick-users mailing list
| Magick-users at imagemagick.org
| http://studio.imagemagick.org/mailman/listinfo/magick-users
  Anthony Thyssen ( System Programmer )    <A.Thyssen at griffith.edu.au>
 -----------------------------------------------------------------------------
   Signature lost in transit.  We apologise for any inconvenience caused.
 -----------------------------------------------------------------------------
     Anthony's Home is his Castle     http://www.cit.gu.edu.au/~anthony/


More information about the Magick-users mailing list