Results 1 to 5 of 5

Thread: BitBlt with a mask

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jun 1999
    Location
    California, USA
    Posts
    662
    I'm looking for a way to use BitBlt (and eventually StretchBlt) with a 256 color greyscale mask. I'd like to composite two images together like so:

    Layer2 = Image (With semi-transparency, derived from mask)
    Layer1 = Background

    I figured, just set the picture to whatever background, and BitBlt layer2 on top of layer1. I have a greyscale image i'd like to use to describe different amounts of transparency for each pixel.

    btw, I've heard that this is easy to do in Win2k. Unfortunately, my end user target is not win2k or win me.

  2. #2
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    Hm Good and Bad news

    What you want to do is possible, but not with BitBlt. Go to http://www.ur.co.nz in the tutorial section is a real good and fast sample how to do this.
    Sanity is a full time job

    Puh das war harter Stoff!

  3. #3
    Addicted Member Mage33's Avatar
    Join Date
    Aug 2000
    Location
    Petaluma, California
    Posts
    138

    bitblt

    Well, I'm just starting to venture into game programming in VB and I was wondering what exactly bitblt is and what it does... can anyone tell me?
    Stephen Haney- 115 116 101 118 101 31 72 65 78 69 89
    -ShardsOfSilence.net- ^ My name in ASCII ^
    You forget something new every day
    | WinME | VB6 Pro | MSC++ | Lambda MOO |

  4. #4
    Member
    Join Date
    Oct 2000
    Posts
    33
    BitBlt copies a chunk of graphics from one place to another.

  5. #5
    i went to that place got that crap and well I DON'T UNDERSTAND IT
    i have the following

    picSprite - the sprite
    picMask - the mask
    picMain - the main picture
    picBuff - the buffer for doing work
    picTiled - picture of the background after it has been tiled onto the buffer to save time loading it later

    what i need is when i click the main picture it BitBlt's the sprite/mask onto the buffer and then transfers it to the main picture

    CAN ANYBODY HELP ME

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