I am drawing on a bit my, then re-loading the bitmap(to erase it) then drawing on it again at 100Hz. I am getting flicker. Is there a way to reduce this flicker? Or a better way to do this than to reload the bitmap everytime? Thanks.

Recommended Answers

All 3 Replies

Your going to have to be much more specific on your problem ;)
Post more details or code if possible.

Clear the off-screen buffer
Draw into it
Copy it to the on-screen buffer

At any given moment in time, every pixel in the on-screen buffer is either the old pixel, or the new pixel. The on-screen buffer is never in a blanked state.

Do what Salem said. I'm pretty sure it's called double buffering.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.