-
hello guys,,,
I have a program which has many many pictures, these pictures have white backgrounds and a signatures in Black,,all i need is for example to copy the picture from one picture box to another one, but removing the white color, that means with transparency background only the black signature,,,
i hope i was clear enough,
Please Help me A.S.A.P.
Thanx alot
-
Use SRCAND as your OP code.
Code:
Retval = BitBlt(Form1.hDC, 0, 0, 100, 100, MyPic.hDC, 0, 0, SRCAND)
-
Hey man,,,all i got is a blacj pic,,thats it,What to do then?
-
You must change all picture backgrounds to black and all signature (mask) backgrounds to white. All signature (mask) files should have black where it should be opaque. EG:
rc=bitblt(picdest.hdc,0,0,100,100,picmask.hdc,0,0,srcand)
rc=bitblt(picdest.hdc,0,0,100,100,picspr.hdc,0,0,srcpaint)
-
I don't know what do you mean,,,please try to explain it to me in easy english,,,,thanks
-
First you must put down a mask, then you must put down your picture. A mask is like a silouette. The image is black and the background is white.
Use his code (listed above) to first put on the mask and then your picture.