请问各位高手有没有一个控件可以通过传入一个数组,就会根据数组的各各值,自动地划出曲线?
  谢谢。

解决方案 »

  1.   

    我这里有一个曲线的,不过不是输入数组,而是使用鼠标在图上点击,就象photoshop中的曲线选择那样,然后通过拟合绘制一个平滑的曲线。
      

  2.   

    win2000有支持函数。具体记不清了。
      

  3.   

    贝塞尔曲线:
        BOOL PolyBezier(    HDC hdc, // handle to device context 
        CONST POINT *lppt, // pointer to endpoints and control points  
        DWORD cPoints  // count of endpoints and control points 
       );或者:
        BOOL PolyBezierTo(    HDC hdc, // handle to device context 
        CONST POINT *lppt, // pointer to endpoints and control points  
        DWORD cCount  // count of endpoints and control points 
       );