帮你up
 我做过的没有保存在服务器上面,而是直接保存在Stream

解决方案 »

  1.   

    新建一圖片,把兩個圖片都DRAW上去,再保存
      

  2.   

    public void Draw1()
    {
    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(); }