我用qrchart数据关联画曲线,但有锯齿状,怎么取得平滑曲线,

解决方案 »

  1.   

    用PolyBezier函数,它可以将折线变成平滑曲线。画平滑曲线用API PolyBeZier来画二次曲线
    PolyBezier(const Points: array of TPoint);三次曲线:
    BOOL PolyPolygon(
        HDC hdc, // handle of device context 
        CONST POINT *lpPoints, // points to array of vertices for all polygons  
        CONST INT *lpPolyCounts, // points to array with count of vertices for each polygon 
        int nCount // count of polygons 
       );