怎样在网页的Panel控件中画曲线图?
自由之眼 2004-02-01 11:53:50 根据指定的数据画出曲线图。
我使用的是继承Drawing类的方法绘制曲线,但是如何将曲线显示在网页的Panel控件中呢?
我查了MSDN,都是针对WinForm的。有没有针对WebForm的?
代码如下:
System.Drawing.Drawing2D.GraphicsPath gpath = new GraphicsPath(new Point[]{new Point(40, 140),new Point(275, 200)},new byte[] {(byte)PathPointType.Start,(byte)PathPointType.Line});
System.Drawing.Drawing2D.PathGradientBrush pgb = new PathGradientBrush(gpath);
pgb.SurroundColors = new System.Drawing.Color [] {System.Drawing.Color.Green};
请教了