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();
本文介绍如何使用 C# 和 System.Drawing 命名空间实现图像的读取及两个图像之间的叠加操作。通过 Graphics 类的方法 drawimage 实现了源图像上指定位置的图像叠加效果。
604

被折叠的 条评论
为什么被折叠?



