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 1 note

up
-8
Lee
12 years ago
They mean, "Creates a vertical mirror image by reflecting the pixels around the central x-axis."
To Top