Bitmap test = new Bitmap( width, height);
Graphics g = Graphics.FromImage( test );
// 画图test.Save(Response.OutPutStream,IamgeFormat.GIF);
test.Dispose();
g.Dispose();
test = null;
g = null;
Graphics g = Graphics.FromImage( test );
// 画图test.Save(Response.OutPutStream,IamgeFormat.GIF);
test.Dispose();
g.Dispose();
test = null;
g = null;
解决方案 »
- 什么是 html + js +wcf
- 求一个LINQ语句的写法
- .NET连接字符串的问题
- 关于gridview,formsview,detailview的问题
- TextBox控件的TextMode属性设置为MultiLine后怎么限制输入字符的长度?
- 哪位达人能给我个ASPX的聊天室(chat)和论坛(bbs)?[用SQL数据库的]
- 开了六十分的贴竟然都没多少人回,再开四十,在线等,解决马上两边一起给(兄弟我也没多少分可给了)
- 怎样将Datagrid中的某一行变色
- 我在父窗口调用对话框:xxx=window.showModalDialog('childform.aspx');在关闭子窗口childform.aspx时:window.returnValue = "a";
- 连接数据库的时候只能读不能写怎么改?
- c#代码转换为vb.net代码的问题。
- 大家看看能不能给个提示,那出问题了?
那么我把你的这些代码放入a.aspx中的什么位置才能在img_test中显示图片呢?
想来你应该安装了.net framework sdk的,看看这里: http://localhost/QuickStart/winforms/default.aspx?url=/quickstart/winforms/doc/WinFormsGDIPlus.aspx 提醒你一下:newBitmap.Save("TestImage.png", ImageFormat.Png)。