我只给出关键部分:
//....
protected override void DoPage(Graphics grfx,Color clr,int cx,int cy)
{
PonitF[] aptf=new PointF[cx];
for(int i=0;i<cx;i++)
{
aptf[i].X=i;
aptf.Y=cy/2*(1-(float)Math.Sin(i*2*Math.PI/(cx-1))); //PI=3.1415
}
grfx.DrawLines(new Pen(clr),aptf);
}