PDA

Click to See Complete Forum and Search --> : Bitblt Prob


bff
Mar 7th, 2001, 02:28 PM
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

Fox
Mar 7th, 2001, 03:53 PM
You probably draw it out of your backbuffer?

bff
Mar 8th, 2001, 01:33 PM
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???

Fox
Mar 8th, 2001, 02:35 PM
just what I said *lol*

try this instead:


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 (http://orion.spaceports.com/~mccloud/vbtool.zip) (Save as...)