Hello...
I have to bmps (100X100) and 1`st has an A on the left side and the
other has a B on the right side. I want to "sum" this bitmaps to
obtain a bitmap that contains "AB".
I thought to use GDI32 SelectObject and BitBtl methods.... but I had
no luck...
Can someone help me?
Thanks
Use the System.Drawings.Graphics class. See the following resources:
http://msdn2.microsoft.com/en-us/library/system.drawing.graphics.aspx
http://www.bobpowell.net/gdiplus_faq.htm

Signature
HTH,
Kevin Spencer
Microsoft MVP
Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
> Hello...
> I have to bmps (100X100) and 1`st has an A on the left side and the
[quoted text clipped - 4 lines]
> Can someone help me?
> Thanks
MarcuEusebiu@gmail.com - 11 May 2007 13:41 GMT
Thanks... on the Bob Powel website I have found the solution...
e.Graphics.DrawImage(a, new Point(0, 0));
ImageAttributes ia = new ImageAttributes();
ColorMatrix cm = new ColorMatrix();
cm.Matrix33 = 0.5f;
ia.SetColorMatrix(cm);
e.Graphics.DrawImage(b, new Rectangle(0, 0, b.Width, b.Height), 0, 0,
b.Width, b.Height, GraphicsUnit.Pixel, ia);
So simple....
Thanks!!!
> Hello...
> I have to bmps (100X100) and 1`st has an A on the left side and the
[quoted text clipped - 4 lines]
> Can someone help me?
> Thanks
Hi Marcu,
Can you please explain your needs further?
Do you need one A&B concatenated BMP (200X100) ?
Moty
MarcuEusebiu@gmail.com - 11 May 2007 13:12 GMT
Seems that I forgot to mention that the result bitmap must be 100X100.
If I put A over B, B becomes the background of A... just like if A has
a transparent backgound, and if I put it over B, I can see the B
bitmap.