帮你up
我做过的没有保存在服务器上面,而是直接保存在Stream
我做过的没有保存在服务器上面,而是直接保存在Stream
解决方案 »
- asp.net 控件coolite中的树形结构怎么才可以有复选框
- gridview 中的textbox 的ID 在后台程序无法识别
- 如果在x64系统上做开发环境 需要注意哪些问题?
- asp.net 为什么找不到控件ID??
- webform_postbackoptions错误
- 我创建了一个Web用户控件,出现无法取值问题,请帮忙!
- 后台管理信息采集的问题
- 小菜:只取年月日,不要时分秒
- 如何在一个页面调用另一个页面的验证功能?
- 这么好的.net编辑器,还是快试用?Microsoft ASP.NET Web Matrix非常的小巧,并带有各种Demo,适合于低配置的设计调试,大家快Down呀
- 高手帮忙菜鸟.image web 服务器控件在页面提交后如何保持原来的状态(src ,width,height)
- windows应用程序和Web应用程序的问题?
{
String drawString = "Sample Text";
System.Drawing.Bitmap b= new System.Drawing.Bitmap(500,500);
System.Drawing.Bitmap b2= new System.Drawing.Bitmap(@"C:\WINNT\CIBAH.BMP");
System.Drawing.Graphics g= System.Drawing.Graphics.FromImage(b);
g.Clear(Color.White);
//Graphics g= Button1.CreateGraphics();
Font drawFont = new Font("Arial", 16);
float x = 150.0F;
float y = 50.0F;
SolidBrush drawBrush = new SolidBrush(Color.Black);
g.DrawImage(b2,0,0,100,100);
g.DrawString(drawString,drawFont,drawBrush,x,y);
b.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg);//
b.Dispose();
b2.Dispose();
g.Dispose(); }
public void Draw2()
{
String drawString = "Sample Text";
System.Drawing.Bitmap b= new System.Drawing.Bitmap(500,500);
System.Drawing.Bitmap b2= new System.Drawing.Bitmap(@"C:\WINNT\CIBAH.BMP");
System.Drawing.Graphics g= System.Drawing.Graphics.FromImage(b);
g.Clear(Color.White);
//Graphics g= Button1.CreateGraphics();
Font drawFont = new Font("Arial", 16);
float x = 150.0F;
float y = 50.0F;
SolidBrush drawBrush = new SolidBrush(Color.Black);
g.DrawImage(b2,0,0,100,100);
g.DrawString(drawString,drawFont,drawBrush,x,y);
b.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg);//
b.Dispose();
b2.Dispose();
g.Dispose(); }