Documentación offline PHP master

Imagick::textureImage

master Ver versión oficial en línea Licencia CC-BY-3.0Descargado el 2026-08-02

En esta página

Imagick::textureImage

Repite los mosaicos de la textura de una imagen

Descripción#

Imagick::textureImage(Imagick $texture_wand): Imagick
```php

Repite los mosaicos de la textura de una imagen mediante el lienzo de la imagen.

## Parámetros

`texture_wand`  
Objeto Imagick a utilizar como imagen de textura

## Valores devueltos

Devuelve un nuevo objeto Imagick, al que se le ha aplicado la textura repetida.

## Errores/Excepciones

Lanza una ImagickException en caso de error.

## Ejemplos

Ejemplo con `Imagick::textureImage`
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; } ?>

```php