com php-src: - add image flip API support: ext/gd/libgd/gd.h
| From: | Pierre Joye | Date: | Wed, 27 Feb 2013 09:39:09 +0000 |
| Subject: | com php-src: - add image flip API support: ext/gd/libgd/gd.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-71343@lists.php.net to get a copy of this message | ||
Commit: af5bf879aa2900f22bb63199858f66bfc38b88e4
Author: Pierre Joye <pierre.php@gmail.com> Wed, 27 Feb 2013 10:39:09 +0100
Parents: e26ea9df42aecb2ae3ca5399acd3829e91c6b4e7
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=af5bf879aa2900f22bb63199858f66bfc38b88e4
Log:
- add image flip API support
Changed paths:
M ext/gd/libgd/gd.h
Diff:
diff --git a/ext/gd/libgd/gd.h b/ext/gd/libgd/gd.h
index 8aedc2c..c4a47af 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 */