嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):78630559
本次赞助数额为: 20 元微信扫码支付:20 元
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
可以实现上千万节点的波形图的对比,分屏显示,区域选择,放大放小,移动,统计
private void DrawPoints(ListNode listX,int site_x,double XMul, double YMul, int star, int end, InforNode InforX)//画一条
{
Graphics point = this.CreateGraphics();//初始化画板
System.Drawing.Brush color = new SolidBrush(Color.FromArgb(InforX.Red, InforX.Green, InforX.Blue)); //配置颜色
int pointX = (int)(listX.X * XMul);//X点位置
int pointY = (int)(site_x - listX.Y * YMul OffsetY);//Y点位置
int tempConter = 0;//临时计数
List<Point> points = new List<Point>();//存直线连接的点
int tempMin = 999;
int tempMax = 0;
//遍历链表绘制图像
while (listX.Next != null)
{
if (listX.X >= star && listX.X <= end)
{
pointX = (int)((listX.X - star) * XMul); //目前点的X坐标
pointY = (int)(site_x - listX.Y * YMul OffsetY); //目前点的Y坐标
if(pointX-tempConter>=1)
{
tempMax = (int)listX.Y > tempMax ? (int)listX.Y : tempMax;
tempMin = (int)listX.Y < tempMin ? (int)listX.Y : tempMin;
points.Add(new Point(pointX, pointY));
tempConter = 1;
}
}
listX = listX.Next;
if (ID_Optim == 2)
{
for (int i = 0; i < 10; i )
{
if (listX.Next != null)
{
listX = listX.Next;
}
}
}
}
Infor_TM.Max = tempMax;
Infor_TM.Min = tempMin;
point.DrawLines(new Pen(color), points.ToArray());
lenfornow.Text = tempConter.ToString();//显示当前长度
}