Imagick::textureImage

(PECL imagick 2, PECL imagick 3)

Imagick::textureImageReviste repetidamente la textura de la imagen

Descripción

Imagick::textureImage(Imagick$texture_wand): bool

Reviste repetidamente la textura de la imagen a través y hacia abajo del lienzo de la imagen.

Parámetros

texture_wand

Valores devueltos

Devuelve true en caso de éxito.

Errores/Excepciones

Lanza ImagickException en caso de error.

Ejemplos

Ejemplo #1 Imagick::textureImage()

<?php
function textureImage($imagePath) {
$image = new \Imagick();
$image->newImage(640, 480, new \ImagickPixel('pink'));
$image->setImageFormat("jpg");
$texture = new \Imagick(realpath($imagePath));
$texture->scaleimage($image->getimagewidth() / 4, $image->getimageheight() / 4);
$image = $image->textureImage($texture);
header("Content-Type: image/jpg");
echo
$image;
}

?>
To Top