GDI + 's ARC is two radians (angle or radian?) As a parameter
CDC is the start and end coordinates
Excuse me:
Use CDC algorithm instead of GDI +, and parameters use GDI +
Here is the code for the circle, is there any good, and the ellipse?
long double x = long double (double (r) * cos (double (m_fAngle / RAD_ANG)));
long double y = long double (double (r) * sin (double (m_fAngle / RAD_ANG)));
return PointF (ptCenter.X + REAL (x), ptCenter.Y + REAL (y));
pDC->Ellipse(a,b,c,d);
The principle is to draw a circle based on a rectangle (a, b are the coordinates of the upper left corner, c, d are the coordinates of the upper right corner), when the rectangle is not a square, it is an ellipse.