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 @@ +