Imagick::flopImage

(PECL imagick 2.0.0)

Imagick::flopImageCreates a horizontal mirror image

说锟斤拷

Imagick::flopImage ( void ) : bool

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

锟斤拷锟斤拷值

锟缴癸拷时锟斤拷锟斤拷 TRUE锟斤拷

锟斤拷锟斤拷锟届常

锟斤拷锟斤拷时锟阶筹拷 ImagickException锟斤拷

锟斤拷锟斤拷

Example #1 Imagick::flopImage()

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

?>