Results 1 to 4 of 4

Thread: Bitblt Prob

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    The Littlest State in the Union
    Posts
    57

    Exclamation

    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

  2. #2
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    You probably draw it out of your backbuffer?

  3. #3

    Thread Starter
    Member
    Join Date
    Feb 2001
    Location
    The Littlest State in the Union
    Posts
    57

    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

  4. #4
    PowerPoster Fox's Avatar
    Join Date
    Jan 2000
    Location
    *afk*
    Posts
    2,088
    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
  •  



Click Here to Expand Forum to Full Width