Merging Images problem

Darc

Well-known member
Joined
Apr 18, 2003
Messages
89
I want to draw image A onto image B but when I try to create a Graphics object, it gives me an exception saying the PixelFormat is Indexed or Extended. Anyway to fix this?
 
Are you doing it this way?

Bitmap A=new Bitmap(100,100);
Bitmap B=new Bitmap(200,200);

Graphics g= Graphics.FromImage(B);
g.DrawImage(draw A code);
 
nm I fixed it, i was trying to save space by using a .gif, I just needed to switch it to .bmp
 
Back
Top