给图片添加图片水印

来源:互联网 发布:程序员的发展前景 编辑:程序博客网 时间:2024/04/28 10:17

 system.drawing.image image = system.drawing.image.fromfile(path);

system.drawing.image copyimage = system.drawing.image.fromfile( server.mappath(".") + "/alex.gif");

graphics g = graphics.fromimage(image);

g.drawimage(copyimage, new rectangle(image.width-copyimage.width, image.height-copyimage.height, copyimage.width, copyimage.height), 0, 0, copyimage.width, copyimage.height, graphicsunit.pixel);

g.dispose();

原创粉丝点击