#792, document gdImageEllipse (#803)

master
Pierre Joye 2022-01-23 11:56:41 +07:00 committed by GitHub
parent f1a53c0821
commit 3f872fc931
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 21 additions and 2 deletions

View File

@ -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;