在图片上增加图片水印

  protected void AddWaterPic(string Path, string Path_syp, string Path_sypf)
        
{
            System.Drawing.Image image 
= System.Drawing.Image.FromFile(Path);
            System.Drawing.Image copyImage 
= System.Drawing.Image.FromFile(Path_sypf);
            System.Drawing.Graphics g 
= System.Drawing.Graphics.FromImage(image);
            g.DrawImage(copyImage, 
new System.Drawing.Rectangle(image.Width - copyImage.Width, image.Height - copyImage.Height, copyImage.Width, copyImage.Height), 00, copyImage.Width, copyImage.Height, System.Drawing.GraphicsUnit.Pixel);
            g.Dispose();

            image.Save(Path_syp);
            image.Dispose();
        }
posted @ 2008-03-09 09:14  WUYQ  阅读(237)  评论(1编辑  收藏  举报