PHP 8.1.0 Beta 1 available for testing

Imagick::flopImage

(PECL imagick 2, PECL imagick 3)

Imagick::flopImageCreates a vertical mirror image

Descrierea

public Imagick::flopImage ( ) : bool

Creates a vertical mirror image by reflecting the pixels around the central y-axis.

Valorile întoarse

Întoarce true în caz de succes.

Erori/Excepții

Emite ImagickException în caz de eroare.

Exemple

Example #1 Imagick::flopImage()

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

?>

add a note add a note

User Contributed Notes

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