Skip to content

Commit af5bf87

Browse files
committed
- add image flip API support
1 parent e26ea9d commit af5bf87

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

ext/gd/libgd/gd.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -682,6 +682,14 @@ int gdImageSmooth(gdImagePtr im, float weight);
682682
/* Image comparison definitions */
683683
int gdImageCompare(gdImagePtr im1, gdImagePtr im2);
684684

685+
void gdImageFlipHorizontal(gdImagePtr im);
686+
void gdImageFlipVertical(gdImagePtr im);
687+
void gdImageFlipBoth(gdImagePtr im);
688+
689+
#define GD_FLIP_HORINZONTAL 1
690+
#define GD_FLIP_VERTICAL 2
691+
#define GD_FLIP_BOTH 3
692+
685693
#define GD_CMP_IMAGE 1 /* Actual image IS different */
686694
#define GD_CMP_NUM_COLORS 2 /* Number of Colours in pallette differ */
687695
#define GD_CMP_COLOR 4 /* Image colours differ */

0 commit comments

Comments
 (0)