Page 1 of 1

How to fill png shape with gradient?

Posted: 2014-10-21T13:51:28-07:00
by donjose
To fill png with color:

Code: Select all

$im = new Imagick('image.png');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_EXTRACT);
$im->setImageBackgroundColor('red');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_SHAPE);
How can i fill png shape with gradient?

Re: How to fill png shape with gradient?

Posted: 2014-10-21T16:19:08-07:00
by fmw42
try

colorizeImage()

Re: How to fill png shape with gradient?

Posted: 2014-10-21T16:19:36-07:00
by fmw42