I'm trying to find a way to merge two Bitmaps together in a Paint event. My code looks like this:
private void GraphicsForm_Paint(object sender, PaintEventArgs e)
{
try
{
Bitmap1 = new Bitmap(1366, 768);
Bitmap2 = new Bitmap(1366, 768);
OutputBitmap = ...//and this is where I've stuck :(
}
catch
{
}
}
The problem is more problematic, because the Graphics object which draws onto Bitmap2 is in an other class. I also want Bitmap2 to be drawn behind Bitmap1 on the OutputBitmap.
Can anyone give me a good advice how to merge these two Bitmaps (behind eachother, but) onto one output bitmap?
Thanks :)