C#有道理吗? WebForm下用程序画出图后页面上其它内容都不显示了??? 求助!!
那段画图代码大致这样,图是可以画出来的可图以外的东西一点就没有,查看源文件都不行:
Bitmap bmp = null;
Graphics g = null;
....
....
MemoryStream ms = new MemoryStream();
bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
HttpContext.Current.Response.ClearContent();
HttpContext.Current.Response.ContentType = "image/jpeg";
ms.WriteTo(HttpContext.Current.Response.OutputStream);
可以的话给出一个能显示图片又可以保留页面其它信息的例子?
如打开就有一个矩形(程序画的)和一些文字(html中的)同时显示。
谢谢