-
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?
-
Why do you use vbSrcInvert? Try vbSrcCopy instead..
And visit my page if you need basic BitBlt exmaples...
-
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
-
pps
I cant use vbscrcopy because I need an xor operator,because the little image is moving!!!!
-
huh???
If you need a transparent picture use a mask... of course it's inverted if you use vbSrcInvert...