急急急!!!,高手请教
我想在webform上的image控件上画出曲线图形,我怎么作阿
我只知道
Bitmap b = new Bitmap(200,200);
Graphics g = Graphics.FromImage(b);
Pen pen=new Pen(Color.Red,2);
g.DrawLine(pen,x1,y1,x2,y2);
g.DrawLine(pen,x2,y2,x3,y3);
g.DrawLine(pen,x3,y3,x4,y4);
b.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Gif);
然后怎么作才能在image控件上体现出来。
谢谢
问题点数:100、回复次数:3Top
1 楼liubao254()回复于 2003-05-02 14:06:47 得分 0
各位高手,能不能把生成的gif文件,放到image控件上呢Top
2 楼fupip(小)¤(贝)回复于 2003-05-02 14:17:43 得分 100
Image.ImageUrl= "draw.aspx ";//draw.aspx是你上面那代码所在的页面Top
3 楼hwndhwnd(何宗键)回复于 2003-05-02 14:19:49 得分 0
不会,我要学习。Top




