Results 1 to 5 of 5

Thread: Stop an ImageBox from Flickering

  1. #1

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246

    Stop an ImageBox from Flickering

    Hello everyone,


    I would like to knwo if there is any way to make an ImageBox stop flickering when moved by a timer, without using DirectDraw or DirectX??


    Thanks


    Phreak

    Visual Studio 6, Visual Studio.NET 2005, MASM

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349
    Have you tried using one large PictureBox to fill the whole area then BitBlt'ing to the PictureBox what you want to display? Make sure the AutoReDraw is set to true if you do do it this way.

    Hope that helps.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3

    Thread Starter
    G&G Moderator chemicalNova's Avatar
    Join Date
    Jun 2002
    Location
    Victoria, Australia
    Posts
    4,246
    Well, see i cant get the hang of Blitting, so and help on that would be appreciated

    Visual Studio 6, Visual Studio.NET 2005, MASM

  4. #4
    Addicted Member jmiller's Avatar
    Join Date
    Jul 2002
    Location
    University of Michigan
    Posts
    238
    bitblt is fairly straight forward. go to allapi.net to get the info on the api call. have the picture in a picturebox that's hidden. one of the bitblt params is the device context (hdc) of the image that your blitting, and also the device context of the place your blitting to (usually form1.hdc). the param of the image device context is usually picturebox.hdc

  5. #5
    Lively Member H-Zence's Avatar
    Join Date
    Jul 2002
    Posts
    94
    I hate using BitBlock Transfers.

    For the longest time I thought that was the solution to making a good 2D game. Then I went and got a tutorial for BitBlt, figured it all out, programmed a basic "shoot-em up" game, and thought it worked...and well, it did. Or at least it did on my computer. On every other computer I tried it on it was ridiculously choppy.

    I recommend learning DX for game programming, it's well worth it, or so I hear it. I've yet to start learning it but its something I'm definitely going to attempt.
    www.mindset1.com
    Religious Debate Forums

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