PHP 8.6.0 Alpha 2 available for testing

Imagick::flopImage

(PECL imagick 2, PECL imagick 3)

Imagick::flopImageCrea una imagen por espejo horizontal

Descripción

public function Imagick::flopImage(): bool

Crea una imagen por espejo horizontal, utilizando una simetría alrededor del eje de las ordenadas.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Devuelve true en caso de éxito.

Errores/Excepciones

Lanza una ImagickException en caso de error.

Ejemplos

Ejemplo #1 Ejemplo con Imagick::flopImage()

<?php
function flopImage($imagePath) {
    $imagick = new \Imagick(realpath($imagePath));
    $imagick->flopImage();
    header("Content-Type: image/jpg");
    echo $imagick->getImageBlob();
}

?>

Véase también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top