Bitmap images = new Bitmap(width, height);
//创建Graphics类对象
Graphics g = Graphics.FromImage(images);g上面画图 代码略......System.IO.MemoryStream ms = new System.IO.MemoryStream();
images.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
Response.ClearContent();
Response.ContentType = "image/Jpeg";
Response.BinaryWrite(ms.ToArray());为什么输出的格式是bmp 太大了?如何变换格式如:gif 等
//创建Graphics类对象
Graphics g = Graphics.FromImage(images);g上面画图 代码略......System.IO.MemoryStream ms = new System.IO.MemoryStream();
images.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
Response.ClearContent();
Response.ContentType = "image/Jpeg";
Response.BinaryWrite(ms.ToArray());为什么输出的格式是bmp 太大了?如何变换格式如:gif 等
解决方案 »
- 使用IBatis做个项目,运行的时候报如下错误Could not load type from string value 'BindGameIDInfo'.
- 关于CustomValidation验证DropdownList控件
- 好久没遇到人品级问题了,大家来看看这个弱智的问题,但是我就是解决不了
- 编译后不匹配??
- 求助一个asp.net转域名的问题
- 关于无刷新聊天室的问题。在线等......
- ASP.net页面的一次执行时间能否超过1分钟?
- 请问js replace()方法怎么替换所有带参数的字符串,求大神帮忙
- 关于exchange2000与win2000server的问题
- 简单任务
- 已经使用了ajax,为何DropDownList在autoPostBack时还是会出现页面闪烁?
- 哪位达人能写一个C#线程的系列高级教程啊?谢谢
images.Save(//这里换成输出流.., System.Drawing.Imaging.ImageFormat.Jpeg); 还有你怎么知道输出的是BMP, 按你这样应该是输出JPEG的.