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
Printable View
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
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.
Well, see i cant get the hang of Blitting, so and help on that would be appreciated
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
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.