- 加载首个图像使用新位图(文件名)
- 加载第二图像相同的方式。
- 通过调用的Graphics.FromImage(bitmap1)
- 呼叫的graphics.DrawImage(bitmap2 ...)把第二图像上的第一个李>
- bitmap1.Save(... )新的图像保存到一个文件中。
I need to be able to take multiple images and overlay a smaller one on top of a larger one and save the result as a single image.
How would I go about accomplishing this in C#?
- Load the first image using new Bitmap(filename)
- Load the second image the same way.
- Get a Graphics object by calling Graphics.FromImage(bitmap1)
- Call graphics.DrawImage(bitmap2...) to put the second image on the first
- Call bitmap1.Save(...) to save the new image to a file.