110,538
社区成员
发帖
与我相关
我的任务
分享
string strlogogpath = context.Server.MapPath(@"UpLoad\sy1.png");
string strimgpath = context.Server.MapPath(@"UpLoad\1.jpg");
using (Bitmap bitmap = new Bitmap(strimgpath))
{
using (Graphics g = Graphics.FromImage(bitmap))
{
g.DrawImage(Image.FromFile(strlogogpath), new Point(5, 5));
bitmap.Save(context.Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg);
}
}