I am having some problems with shifting the code from GDI to GDI+.
In the application, the GDI RoundRect function draws the rounded rectangle perfectly but when I use GraphicsPath of GDI+, the corner arcs are not drawn perfectly.
I am using the same coordinates and the same corner ellipse width/height but somehow the corners are not getting overlapped.
Here is my algorithm of RoundRect in GDI+ : -
void DrawRoundedRectangle( IN Rect &rc, IN FLOAT radius, IN COLORREF clr, IN FLOAT lineWidth )
{
float diameter;
Bookmarks