28,391
社区成员
发帖
与我相关
我的任务
分享
/// <summary>
///
/// </summary>
/// <param name="path1">需要贴章的路径</param>
/// <param name="path2">贴章完成之后的路径</param>
public void Print_syzh(string path1, string path2)
{
string pic = path1;
string icon = Server.MapPath("~\\Images\\sxshyy.gif");
Bitmap map = new Bitmap(pic);
Bitmap img = new Bitmap(icon);
Graphics g = Graphics.FromImage(map);
g.DrawImage(img, new Rectangle(map.Width - img.Width * 2, map.Height - img.Height * 2, img.Width, img.Height), 0, 0, img.Width, img.Height, GraphicsUnit.Pixel);
map.Save(path2, System.Drawing.Imaging.ImageFormat.Jpeg);
g.Dispose();
map.Dispose();
}