Results 1 to 6 of 6

Thread: Easy BitBlt Question

  1. #1

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241

    Talking

    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

  2. #2
    Guest
    Use SRCAND as your OP code.

    Code:
    Retval = BitBlt(Form1.hDC, 0, 0, 100, 100, MyPic.hDC, 0, 0, SRCAND)

  3. #3

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    Hey man,,,all i got is a blacj pic,,thats it,What to do then?

  4. #4
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134

    Exclamation

    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)


  5. #5

    Thread Starter
    Addicted Member Mih_Flyer's Avatar
    Join Date
    Mar 2000
    Location
    some place there
    Posts
    241
    I don't know what do you mean,,,please try to explain it to me in easy english,,,,thanks

  6. #6
    Guest
    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
  •  



Click Here to Expand Forum to Full Width