diff options
author | Pierre Joye <pierre.php@gmail.com> | 2013-02-27 10:39:09 +0100 |
---|---|---|
committer | Pierre Joye <pierre.php@gmail.com> | 2013-02-27 10:39:09 +0100 |
commit | af5bf879aa2900f22bb63199858f66bfc38b88e4 (patch) | |
tree | b70fc2a5362197231142117c4a20f139939b3c07 | |
parent | e26ea9df42aecb2ae3ca5399acd3829e91c6b4e7 (diff) | |
download | php-git-af5bf879aa2900f22bb63199858f66bfc38b88e4.tar.gz |
- add image flip API support
-rw-r--r-- | ext/gd/libgd/gd.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h index 8aedc2c38c..c4a47af7fd 100644 --- a/ext/gd/libgd/gd.h +++ b/ext/gd/libgd/gd.h @@ -682,6 +682,14 @@ int gdImageSmooth(gdImagePtr im, float weight); /* Image comparison definitions */ int gdImageCompare(gdImagePtr im1, gdImagePtr im2); +void gdImageFlipHorizontal(gdImagePtr im); +void gdImageFlipVertical(gdImagePtr im); +void gdImageFlipBoth(gdImagePtr im); + +#define GD_FLIP_HORINZONTAL 1 +#define GD_FLIP_VERTICAL 2 +#define GD_FLIP_BOTH 3 + #define GD_CMP_IMAGE 1 /* Actual image IS different */ #define GD_CMP_NUM_COLORS 2 /* Number of Colours in pallette differ */ #define GD_CMP_COLOR 4 /* Image colours differ */ |