Imagick
在线手册:中文 英文
PHP手册

Imagick::textureImage

(PECL imagick 2.0.0)

Imagick::textureImageRepeatedly tiles the texture image

说明

bool Imagick::textureImage ( Imagick $texture_wand )

Repeatedly tiles the texture image across and down the image canvas.

参数

texture_wand

返回值

成功时返回 TRUE .

错误/异常

错误时抛出 ImagickException .


Imagick
在线手册:中文 英文
PHP手册
PHP手册 - N: Repeatedly tiles the texture image

用户评论:

truthseekercz at email dot cz (08-Sep-2010 01:41)

<?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.