(PECL imagick 2.0.0)
Imagick::textureImage — Repeatedly tiles the texture image
Repeatedly tiles the texture image across and down the image canvas.
texture_wand
成功时返回 TRUE
。
错误时抛出 ImagickException。
truthseekercz at email dot cz (2010-09-08 05:41:35)
<?php
$image = new Imagick();
$image->newImage(500, 500, new ImagickPixel('red'));
$image->setImageFormat("png");
$type=$image->getFormat();
header("Content-type: $type");
$texture = new Imagick();
$texture->readImage('texture.png');
$image = $image->textureImage($texture);
echo $image;
?>
This works for me, however, I give no guarantees that the above example is the proper usage of this function.