给图片添加图片水印

it2022-05-09  30

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();

转载于:https://www.cnblogs.com/n666/archive/2009/10/23/2191063.html

相关资源:Java实现给图片添加图片水印,文字水印及马赛克的方法示例

最新回复(0)