imageflip
PHP 5 >= 5.5.0, PHP 7, PHP 8
imageflip - Flips an image using a given mode
Manual
imageflip(
GdImage$image,
int$mode ): bool
Flips the image image using the given mode.
Parameters
- image
A GdImage object, returned by one of the image creation functions, such as imagecreatetruecolor.
- 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.
Return Values
Returns true on success or false on failure.
Changelog
Version | Description |
8.0.0 | image expects a GdImage instance now; previously, a resource was expected. |