How to fill png shape with gradient?
Posted: 2014-10-21T13:51:28-07:00
To fill png with color:
How can i fill png shape with gradient?
Code: Select all
$im = new Imagick('image.png');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_EXTRACT);
$im->setImageBackgroundColor('red');
$im->setImageAlphaChannel(Imagick::ALPHACHANNEL_SHAPE);