summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2022-01-23 11:16:34 +0700
committerPierre Joye <pierre.php@gmail.com>2022-01-23 11:16:34 +0700
commitc87aabb9f92afaa17fefddfa2d3b3888104c3439 (patch)
tree87b9c20c14f1200430ab50ed30bb4bce6f847660
parent0f9dd9627aa9f5095164a73e84905bb4af4bfc8f (diff)
downloadlibgd-bug/792.tar.gz
#792, document gdImageEllipsebug/792
-rw-r--r--src/gd.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/gd.c b/src/gd.c
index 0be8aad..d78504e 100644
--- a/src/gd.c
+++ b/src/gd.c
@@ -2187,9 +2187,28 @@ BGD_DECLARE(void) gdImageFilledArc (gdImagePtr im, int cx, int cy, int w, int h,
}
}
+
/*
- Function: gdImageEllipse
-*/
+ * Function: gdImageEllipse
+ *
+ * Draw an ellipse, stroke only.
+ *
+ * Note:
+ * This function does not support <gdImageSetThickness>. GD 3.0 supports actual 2D vectors
+ * operation, you may rely on it if you need better 2D drawing operations.
+ *
+ * Parameters:
+ * im - The destination image.
+ * src - The source image.
+ * mx - x-coordinate of the center.
+ * my - y-coordinate of the center.
+ * w - The ellipse width.
+ * h - The ellipse height.
+ * c - The color of the ellipse. A color identifier created with one of the image color allocate functions.
+ *
+ * See also:
+ * - <gdImageFilledEllipse>
+ */
BGD_DECLARE(void) gdImageEllipse(gdImagePtr im, int mx, int my, int w, int h, int c)
{
int x=0,mx1=0,mx2=0,my1=0,my2=0;