I am using bitblt on moving images, and frequently updated images. Flickering has been the cause of the problem, and still exists. Any furthure bitblt info. i may be missing? Thanks,
___
Dan
Printable View
I am using bitblt on moving images, and frequently updated images. Flickering has been the cause of the problem, and still exists. Any furthure bitblt info. i may be missing? Thanks,
___
Dan
Use Picture1.AutoRedraw = True to avoid flickering. After all drawing you need to Call Picture1.Refresh to show your work.
For more details see the several BitBlt / Tile engine tutorials on http://fox.yhoko.com
Also, another method for avoiding flickering is to use a backbuffer and then blitting the whole thing onto your (presumably) picturebox at once. With this on, you can turn the autoredraw off. I've heard this helps speed, but I could be totally and absolutely wrong on that. The only disadvantage is that if you're not constantly blitting you'll lose data when your picturebox isn't being shown.
Yes, that's faster, but you need a bunch of API knowledge to create the backbuffer and since he's asking basic questions... however, backbuffering is explained somewhere on my page, too ;)