-
Nov 10th, 2000, 02:21 AM
#1
Thread Starter
Fanatic Member
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.
-
Nov 10th, 2000, 02:40 AM
#2
Frenzied Member
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!
-
Nov 10th, 2000, 04:33 PM
#3
Addicted Member
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 |
-
Nov 10th, 2000, 05:19 PM
#4
Member
BitBlt copies a chunk of graphics from one place to another.
-
Nov 21st, 2000, 03:33 PM
#5
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|