From f50b25ab8b099f1891df153859edbaa59d5e28a1 Mon Sep 17 00:00:00 2001 From: Kalle Sommer Nielsen Date: Fri, 22 Mar 2013 16:08:07 +0000 Subject: [PATCH] Documented imageflip(), available as of PHP 5.5.0 using LibGD git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329873 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/image/constants.xml | 37 ++++ .../image/figures/imagefliphorizontal.png | Bin 0 -> 2223 bytes reference/image/figures/imageflipvertical.png | Bin 0 -> 2237 bytes reference/image/functions/imageflip.xml | 179 ++++++++++++++++++ reference/image/versions.xml | 3 + 5 files changed, 219 insertions(+) create mode 100644 reference/image/figures/imagefliphorizontal.png create mode 100644 reference/image/figures/imageflipvertical.png create mode 100644 reference/image/functions/imageflip.xml diff --git a/reference/image/constants.xml b/reference/image/constants.xml index e9ccba1967..7e755f3bf3 100644 --- a/reference/image/constants.xml +++ b/reference/image/constants.xml @@ -789,6 +789,43 @@ + + + + IMG_FLIP_VERTICAL + (int) + + + + Used together with imageflip, available as of PHP 5.5.0. + + + + + + + IMG_FLIP_HORIZONTAL + (int) + + + + Used together with imageflip, available as of PHP 5.5.0. + + + + + + + IMG_FLIP_BOTH + (int) + + + + Used together with imageflip, available as of PHP 5.5.0. + + + + + + + imageflip + Flips an image using a given mode + + + + &reftitle.description; + + boolimageflip + resourceimage + intmode + + + Flips the image image using the given + mode. + + + + + &reftitle.parameters; + + + &gd.image.description; + + mode + + + Flip mode, this can be one of the IMG_FLIP_* constants: + + + + + + + Constant + Meaning + + + + + IMG_FLIP_HORIZONTAL + + Flips the image horizontally. + + + + IMG_FLIP_VERTICAL + + Flips the image vertically. + + + + IMG_FLIP_BOTH + + Flips the image both horizontally and vertically. + + + + + + + + + + + + + + &reftitle.returnvalues; + + &return.success; + + + + + &reftitle.examples; + + + Flips an image vertically + + This example uses the IMG_FLIP_VERTICAL. + + + +]]> + + &example.outputs.similar; + + Output of example: Vertically flipped image + + + + + + + + + Flips the image horizontally + + This example uses the IMG_FLIP_HORIZONTAL constant. + + + +]]> + + &example.outputs.similar; + + Output of example: Horizontally flipped image + + + + + + + + + + &reftitle.notes; + ¬e.bundled.gd; + + + + diff --git a/reference/image/versions.xml b/reference/image/versions.xml index 6291467c6f..eb9e64d7f2 100644 --- a/reference/image/versions.xml +++ b/reference/image/versions.xml @@ -49,6 +49,8 @@ + + @@ -59,6 +61,7 @@ +