PDA

Click to See Complete Forum and Search --> : Something strange with BitBlt. I need HELP!!


Sep 17th, 2000, 09:49 AM
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?

Fox
Sep 17th, 2000, 11:28 AM
Why do you use vbSrcInvert? Try vbSrcCopy instead..

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

Sep 17th, 2000, 02:12 PM
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

Sep 17th, 2000, 02:15 PM
I cant use vbscrcopy because I need an xor operator,because the little image is moving!!!!

Fox
Sep 17th, 2000, 02:33 PM
huh???

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