Results 1 to 2 of 2

Thread: BitBlt Question (Tracers/Transparency)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2002
    Location
    Klamath Falls, OR
    Posts
    71

    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.

  2. #2
    Good Ol' Platypus Sastraxi's Avatar
    Join Date
    Jan 2000
    Location
    Ontario, Canada
    Posts
    5,134
    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
  •  



Click Here to Expand Forum to Full Width