Search found 1 match

by donjose
2014-10-21T13:51:28-07:00
Forum: IMagick
Topic: How to fill png shape with gradient?
Replies: 2
Views: 8484

How to fill png shape with gradient?

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?