CakeFest 2024: The Official CakePHP Conference

Imagick::flopImage

(PECL imagick 2, PECL imagick 3)

Imagick::flopImage水平方向に反転した画像を作成する

説明

public Imagick::flopImage(): bool

中心の y 軸を基準してピクセルを反転させ、水平方向のミラー画像を作成します。

パラメータ

この関数にはパラメータはありません。

戻り値

成功した場合に true を返します。

エラー / 例外

エラー時に ImagickException をスローします。

例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

User Contributed Notes

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