Delphi and Kylix

Moderators: pritaeas
Number of threads: 7264
Number of posts: 19073

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Graphics that flicker Posted by KaSch on 9 Jul 2003 at 2:06 AM
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

Report
Re: Graphics that flicker Posted by injektilo on 15 Jul 2003 at 3:47 AM



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.