Results 1 to 5 of 5

Thread: Something strange with BitBlt. I need HELP!!

  1. #1
    Guest

    Question

    I read the 3 lessons for making a Lander game. I've done the game without any special problem, but there a strange thing that i can't handle.
    I use this code:
    BitBlt pic0.hdc, x, y, pic1.ScaleWidth, _
    pic1.ScaleHeight, pic1.hdc, 0, 0, _
    vbSrcInvert
    There is a problem: The program copies pic1, but its colour changes when the background image's colour (pic0) changes.
    I noticed that in the demo there isn't this problem, but i can't understand why.
    What I have to do?


  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    Why do you use vbSrcInvert? Try vbSrcCopy instead..

    And visit my page if you need basic BitBlt exmaples...

  3. #3
    Guest

    Exclamation ps:

    I also noticed that, if the pic0 (the biggest picture) is black, the colours of pic1 are all right, but they are exactly inverted when pic0 is white.
    Ihope that someone can help me.
    Regards
    Guillo

  4. #4
    Guest

    pps

    I cant use vbscrcopy because I need an xor operator,because the little image is moving!!!!

  5. #5
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    huh???

    If you need a transparent picture use a mask... of course it's inverted if you use vbSrcInvert...

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