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