|
-
Jun 15th, 2000, 02:22 PM
#1
Thread Starter
Addicted Member
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
-
Jun 16th, 2000, 04:06 AM
#2
Use SRCAND as your OP code.
Code:
Retval = BitBlt(Form1.hDC, 0, 0, 100, 100, MyPic.hDC, 0, 0, SRCAND)
-
Jun 16th, 2000, 04:38 AM
#3
Thread Starter
Addicted Member
Hey man,,,all i got is a blacj pic,,thats it,What to do then?
-
Jun 16th, 2000, 04:38 AM
#4
Good Ol' Platypus
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)
-
Jun 16th, 2000, 04:41 AM
#5
Thread Starter
Addicted Member
I don't know what do you mean,,,please try to explain it to me in easy english,,,,thanks
-
Jun 16th, 2000, 05:11 AM
#6
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|