[magick-users] DrawSetFillPatternURL problem
Boris Bartsyts
bartzitz at gmail.com
Tue Apr 24 03:28:25 PDT 2007
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
More information about the Magick-users
mailing list