I have 2 1bppindexed bitmaps and i want to combine both together. I
converted both to 24bpp then tried to combine them but it didnt work. If
possible i want to be able to draw one bitmap directly on top of the
other and would be really good if i only had to use one 24bpp bitmap to
do this.Below is a way to map draw a 1bpp bitmap onto a 24bpp
one.....would it be possible to draw my second bitmap on the same
one?.....some pixels overlap as well so i need to set a value for those
pixels too.....any ideas?
Bitmap onebit=(Bitmap)Image.FromFile("theimagefile");
Bitmap bm=new Bitmap(onebit.Width, onebit.Height,
PixelFormat.Format24bppRGB);
Graphics g=Graphics.FromImage(bm);
g.DrawImage(onebit,new
Rectangle(0,0,onebit.Width,onebit.Height),0,0,oneb it.Width,onebit.Height
,Gra
phicsUnit.Pixel);
g.dDispose();
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!