Results 1 to 2 of 2

Thread: Another BitBlt() question

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2002
    Location
    Michigan
    Posts
    4

    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

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



Click Here to Expand Forum to Full Width