|
-
Jun 6th, 2002, 04:56 PM
#1
Thread Starter
Lively Member
BitBlt Question (Tracers/Transparency)
I'll try and keep this as short as possible
I've got a picture box, with a picture in it... it is my background for the game.. then i've got an object the scrolls from left to right and right to left, lots of them. Anyways.. it looks all fine and dandy, BUT since the BG is textured, and it has some whitish shades in it... you can see the texture through the scrolling objects sometimes. What is the appropriate order of drawing to make the image completely solid, AND the edges around it transparent. I've come close with this....
BitBlt Mask vbSrcPaint
BitBlt Object vbSrcAnd
BitBlt Object vbSrcInvert
But it leaves a black trail behind the object, which is not good. I just can't figure out how to make the object move across the screen, solid and transparent on the edges. And the background picture underneath needs to be put back to where it was (No black lines). I dunno if this is possible. Any help though in getting the image to look right would be MUCH appreciated. Thanks
Last edited by mattkinser; Jun 6th, 2002 at 05:11 PM.
-
Jun 6th, 2002, 06:53 PM
#2
Good Ol' Platypus
Make sure you clear the picturebox and redraw the background and character, or the trials are self-explanatory 
Black BG on sprite: SrcAnd = Mask, SrcPaint = Sprite
White BG on sprite: MergePaint = Mask, SrcAnd = Sprite
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
|