|
-
May 28th, 2002, 12:32 PM
#1
Thread Starter
Not NoteMe
BitBlt
Firstly, sorry about starting a thread for this, i know this sort of thing has been answered many times, but i just can not get it to work. 
I'm making an tile based game editor. I'm currently bitblting the pictures on to the form, then using SRCAND to overlay the current object to place (which follows the cursor, and only changes the 'map' when the user clicks.
Instead of blending the images together i want to overlay the current object on top of the form.
As i already had all the SRCAND bitblt commands set up correctly, i decided to make a sub that instead of doing and, did a mask & picture.
Here is the Sub i'm using:
VB Code:
Public Sub MskBlt(DestDC, X, Y, Width, Height, SrcDC)
BitBlt DestDC, X, Y, Width, Height, SrcDC, Width, 0, SRCPAINT
BitBlt DestDC, X, Y, Width, Height, SrcDC, 0, 0, SRCAND
End Sub
All the parameters are the same as the ones i used for bitblt (which worked), except the last 3, which arn't needed any more.
The trouble is that this still blends the pictures together instead of overlaying them. What have i don't wrong?
Thanks for any replies.
Quotes:
"I am getting better then you guys.." NoteMe, on his leet english skills.
"And I am going to meat her again later on tonight." NoteMe
"I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
"my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
Have I helped you? Please Rate my posts. 
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
|