[fpc-pascal] TImage : how to avoid flickering when changing image
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? Dennis ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TImage : how to avoid flickering when changing image
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 flickering. Henry ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] TImage : how to avoid flickering when changing image
On Tue, Aug 05, 2014 at 12:19:22PM +0100, Henry Vermaak wrote: 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 flickering. P.S. This is the wrong list for Lazarus questions. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal