|
-
Sep 17th, 2000, 09:49 AM
#1
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?
-
Sep 17th, 2000, 11:28 AM
#2
PowerPoster
Why do you use vbSrcInvert? Try vbSrcCopy instead..
And visit my page if you need basic BitBlt exmaples...
-
Sep 17th, 2000, 02:12 PM
#3
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
-
Sep 17th, 2000, 02:15 PM
#4
pps
I cant use vbscrcopy because I need an xor operator,because the little image is moving!!!!
-
Sep 17th, 2000, 02:33 PM
#5
PowerPoster
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|