用GDI+画线,为什么会出现画出尖角来?
请看图片:
http://member.netease.com/~lilong/temp/llll.jpg
我使用GDI+的GraphicsPath,将一组通过WM_MOVE得到的点在屏幕上画出来
GraphicsPath pa;
pa.AddCurve(m_Points.GetData(), m_Points.GetCount());
//使用pa.AddLines();效果一样
Pen pen(get_Color(), (float)get_Size());
Graphics graphics(bmp);
graphics.DrawPath(&pen, &pa);
经常会出现如图所示的尖角,这是为什么呢?如何避免?