public override bool GetWave(List <PointF> p, Graphics g, ChannelManage c, int id) { PointF[] ptNew = new PointF[p.Count]; for (int i = 0; i < p.Count; i++) { ptNew[i].X = p[i].X * c.ChannelFold_x + c.ChannelMove_x; ptNew[i].Y = p[i].Y * c.Chans[id].ChannelFold_y + c.Chans[id].ChannelMove_y; } for (int i = 0; i < p.Count - 1; i++) { penWave.Color = c.Chans[id].ChannelColor; g.DrawLine(penWave, ptNew[i], ptNew[i + 1]); } return(true); }
/// <summary> /// 制作出波形的形状方法 /// </summary> /// <param name="p">传入数据点的list数组</param> /// <param name="g">传入画布</param> /// <param name="c">传入通道管理类的实例</param> /// <param name="id">传入通道id</param> /// <returns></returns> public abstract bool GetWave(List <PointF> p, Graphics g, ChannelManage c, int id);