How to flood fill the frame with a pattern image using imagick php class?

不羁的心 提交于 2019-12-23 03:54:32

问题


I want to flood fill the frame with tiled image instead of color. Currently im using this codes

$imagick = new \Imagick('image.jpg');
$imagick->scaleImage(300, 300, false);

// Create frame placeholder
$imagick->frameimage( 'red','30','30', 30, 0);

// Flood fill with color
$imagick->floodFillPaintImage('green', 10, '#6e0000',0, 0,false
);

header("Content-Type: image/jpg");
echo $imagick->getImageBlob();

and the result:

but i want a result like this

Thank you very much!

来源:https://stackoverflow.com/questions/33490101/how-to-flood-fill-the-frame-with-a-pattern-image-using-imagick-php-class

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!