读书人

小弟我想在页面中输出GDI绘出的图像

发布时间: 2012-02-06 15:52:44 作者: rapoo

我想在页面中输出GDI绘出的图像,怎么做
我想在页面中输出GDI绘出的图像,怎么做,图像绘成了,怎样输出到页面上呢?请帮忙

[解决办法]

C# code
Bitmap bmp = new Bitmap(800,300,PixelFormat.Format24bppRgb);            Graphics g = Graphics.FromImage(bmp);            //你想干什么在这里写            //转化成gif格式输出              Response.ContentType = "image/gif";            bmp.Save(Response.OutputStream,ImageFormat.Gif); 

读书人网 >asp.net

热点推荐