PHP 8.3.4 Released!

Imagick::flopImage

(PECL imagick 2, PECL imagick 3)

Imagick::flopImageCreates a horizontal mirror image

Descrição

public Imagick::flopImage(): bool

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

Parâmetros

Esta função não possui parâmetros.

Valor Retornado

Retorna true em caso de sucesso.

Erros/Exceções

Lança uma exceção ImagickException em caso de erro.

Exemplos

Exemplo #1 Imagick::flopImage()

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

?>

Veja Também

add a note

User Contributed Notes

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