- m_graphicContext->PushState() ;
- m_graphicContext->Translate( xx , yy ) ;
- m_graphicContext->Scale( radius , radius ) ;
- double fw = ww / radius ;
- double fh = hh / radius;
- path->MoveToPoint(fw, fh / 2);
- path->AddArcToPoint(fw, fh, fw / 2, fh, 1);
- path->AddArcToPoint(0, fh, 0, fh / 2, 1);
- path->AddArcToPoint(0, 0, fw / 2, 0, 1);
- path->AddArcToPoint(fw, 0, fw, fh / 2, 1);
+ path->MoveToPoint( xx + ww, yy + hh / 2);
+ path->AddArcToPoint(xx + ww, yy + hh, xx + ww / 2,yy + hh, radius);
+ path->AddArcToPoint(xx , yy + hh, xx , yy + hh / 2, radius);
+ path->AddArcToPoint(xx , yy , xx + ww / 2, yy , radius);
+ path->AddArcToPoint(xx + ww, yy , xx + ww, yy + hh / 2, radius);