PHP 8.3.4 Released!

Imagick::transposeImage

(PECL imagick 2, PECL imagick 3)

Imagick::transposeImageCreates a vertical mirror image

Descrizione

public Imagick::transposeImage(): bool

Creates a vertical mirror image by reflecting the pixels around the central x-axis while rotating them 90-degrees. Questo metodo è disponibile se Imagick è stato compilato con ImageMagick versione 6.2.9 o successive.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Restituisce true in caso di successo.

Esempi

Example #1 Imagick::transposeImage()

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

?>

Vedere anche:

add a note

User Contributed Notes

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