|
-
Mar 7th, 2001, 03:28 PM
#1
Thread Starter
Member
I am using bitblt just to simply move an object to right. But when the object i am moving reaches a certain point it disapears. I tried moving the object down and the same thing happens,btw i am using a backbuffer and the problem occurs in the frontbuffer or visable area. Any help
Visual Basic 6.0 Enterprise Edition
Java 2
Windows 98
Mac OS 9.1
-
Mar 7th, 2001, 04:53 PM
#2
PowerPoster
You probably draw it out of your backbuffer?
-
Mar 8th, 2001, 02:33 PM
#3
Thread Starter
Member
Im not sure
Im not sure what your saying but this is what im doing
this copies sprite to back buffer
bitblt buffer.hdc,x,y,50,50,sprite.hdc, 0,0,srcpaint
this copies image to front buffer
bitblt front.hdc,x,y,50,50,buffer.hdc, 0,0,srccopy
any idea???
Visual Basic 6.0 Enterprise Edition
Java 2
Windows 98
Mac OS 9.1
-
Mar 8th, 2001, 03:35 PM
#4
PowerPoster
just what I said *lol*
try this instead:
Code:
BitBlt Buffer.hDC, X, Y, 0, 0, Sprite.hDC, 0, 0, vbSrcPaint
BitBlt Front.hDC, X, Y, 50, 50, Buffer.hDC, 0, 0, vbSrcCopy
'Code improved by vBulletin Tool (Save as...)
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
|