Results 1 to 3 of 3

Thread: bitblt

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Posts
    42

    bitblt

    I know you guys are probably sick to death of topics about really easy things like. I just started graphical work a few days ago, and the first thing I seemed to needed to understand was the API bitblt. I'll try to make it quick and painless for you.

    I've only been able to retrieve an image (the source) and place it into the destination image. I'm really worried about how to use the last parameter, 'dwRop'. Say the source image is a bitmap man with a black background, and the destination image is just a plain green background. How do you merge the two images to have the man standing with the green background filled around him? Tutorials tell me to use 'SRCCOPY' (and define it as a constant) but that does not seem to get rid of the black. Some examples I have downloaded use two bitblt calls, one with SRCAND and the one with SRCPAINT, also using a different image for each, the only difference being the source's background (one white, one black). I can't seem to work it to make the source's background transparent. Any help?

  2. #2
    Addicted Member Peter1's Avatar
    Join Date
    Aug 2002
    Posts
    166
    Theres a Bitblt example to do that in this project I made.

    Theres other stuff as well. Hope it helps.

    Pete
    Attached Files Attached Files

  3. #3
    Frenzied Member cyborg's Avatar
    Join Date
    May 2000
    Location
    Sweden
    Posts
    1,755
    The dwRop constants are allready defined in VB...
    I dont remember all of them but just ad 'vb' before them, like vbSrcCopy etc etc...
    Check out the FAQ and do a search before you post.
    My tutorials: Anti-Alias Pixels, Accurate Game Loop, Resource File

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