[fpc-pascal] TImage : how to avoid flickering when changing image

Henry Vermaak henry.vermaak at gmail.com
Tue Aug 5 13:19:22 CEST 2014

On Tue, Aug 05, 2014 at 07:06:43PM +0800, Dennis Poon wrote:
> every few seconds, I want the same TImage  to load a different jpg
> file but now it flickers whenever
> TheImage.Picture.LoadFromFile('new.jpg');
> How do I avoid the flickering?

I assume you're on Windows.  Have you tried to set DoubleBuffered to
True?  I didn't use TImage, but I remember having to put the PaintBox
onto a panel and set panel.DoubleBuffered to True to stop the


More information about the fpc-pascal mailing list