You can use the Graphics
class in System.Drawing
.
using System.Drawing;
// Then, in your class
public static void Copy (Bitmap target, Bitmap source, int x, int y)
{
Graphics g=Graphics.FromImage(target);
g.DrawImage(source, x, y);
}
public static void Main (string[] args)
{
Bitmap target=(Bitmap)Bitmap.FromFile("bg.jpg");
Bitmap source=(Bitmap)Bitmap.FromFile("fg.png");
Copy (target, source, 100,50);
Copy (target, source, 200,300);
Copy (target, source, 500,450);
target.Save("newBG.jpg");
}