|
-
Nov 3rd, 2002, 05:11 AM
#1
Thread Starter
G&G Moderator
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
-
Nov 3rd, 2002, 05:29 AM
#2
Ex-Super Mod'rater
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.

-
Nov 4th, 2002, 08:38 PM
#3
Thread Starter
G&G Moderator
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
-
Nov 5th, 2002, 10:26 AM
#4
Addicted Member
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
-
Nov 7th, 2002, 10:53 PM
#5
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|