Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Graphics that flicker

KaSchKaSch Posts: 2Member
Dear All,

I am a researcher and use Delphi(5) as a modelling tool. At the moment I try to display a grid of cells that keep changing their status, i.e. change colour.
I draw my grid (a group of rectangles) into a TImage. To update the whole grid before displaying the result I have in fact 2 TImage variables one of which is visible while the other one is not. The invisible one is updated to the new status, the visibility properties for the two variable are swapped over and the other one is updated. I hope this make sense.

My Problem is that the image flickers (a lot).

In a a third TImage variable I try to use FillRect() to clear the image before updating it. The result is pretty much the same.

My system is a 2.5GHz PC under Windows 2000 with Delphi 5. Any suggestion of how to get a flicker free image would be very welcome.

Cheers

KaSch

Sign In or Register to comment.