summaryrefslogtreecommitdiff
path: root/src/gd.c
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2016-10-06 18:28:46 +0200
committerChristoph M. Becker <cmbecker69@gmx.de>2016-10-06 18:28:46 +0200
commit4ebdb483e4340bf7bdf7c74a5e62c0403c26af9d (patch)
tree1ff7c6466df54b4c46a49fec87c819d7fc0ebe4c /src/gd.c
parentb697bf74dbdd0ba472e3d3ec5ee348b21f3984f2 (diff)
downloadlibgd-4ebdb483e4340bf7bdf7c74a5e62c0403c26af9d.tar.gz
Document gdImageCompare()
Diffstat (limited to 'src/gd.c')
-rw-r--r--src/gd.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/src/gd.c b/src/gd.c
index f7605dc..f0cfacd 100644
--- a/src/gd.c
+++ b/src/gd.c
@@ -3941,9 +3941,19 @@ BGD_DECLARE(void) gdImageInterlace (gdImagePtr im, int interlaceArg)
im->interlace = interlaceArg;
}
-/*
- Function: gdImageCompare
-*/
+/**
+ * Function: gdImageCompare
+ *
+ * Compare two images
+ *
+ * Parameters:
+ * im1 - An image.
+ * im2 - Another image.
+ *
+ * Returns:
+ * A bitmask of <Image Comparison> flags where each set flag signals
+ * which attributes of the images are different.
+ */
BGD_DECLARE(int) gdImageCompare (gdImagePtr im1, gdImagePtr im2)
{
int x, y;