|
-
Apr 5th, 2002, 01:08 AM
#1
Thread Starter
New Member
Another BitBlt() question
Okay, I am having a problem with my little hovering dragon.
I used bitblt and I have a dragon picturebox hovering over stars(my background picturebox), I used the srcInvert property instead of the srcCopy because copying makes the big block of my dragon picture cover up the background(and since I don't know how to redraw the background, the stars go away for good).
Now the problem is that you can see the stars through the dragon. In other words, how do I make it so that you don' see the background picturebox through the picture box that was drawn over it? I think the techinque was called masking, but I might be refering to some technique that has nothing to do with my problem.
Can someone help me?
Thanks
-
Apr 5th, 2002, 08:05 AM
#2
Good Ol' Platypus
Make the dragon's background black or white, and then make a Mask. A mask is where the sprite pixels are black and the background (see-through) is white. What you do then is blit the mask first with vbMergePaint and then the sprite next with vbSrcAnd. If you're using a black background, use vbSrcAnd and vbSrcPaint.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
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
|