Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

stop flickering

Tags:

delphi

I have an old program written in borland pascal and in Delphi if I use the Form1.Canvas.LineTo and MoveTo functions I get a flickering effect. Can anyone tell me how to get rid of the flickering?

like image 363
Remus Rigo Avatar asked Dec 23 '09 18:12

Remus Rigo


People also ask

How do I stop flickering?

Fix your display driver If Windows Update recently made updates to your device, roll back your display driver. Otherwise, try updating or uninstalling your display driver to fix the flickering or scrambling problem. In the search box on the taskbar, enter device manager, and then select it from the list of results.

What causes screen flickering?

A loose or damaged screen cable, inverter, or backlight are all possible culprits behind your particular laptop screen flickering woes.

How do I fix my Samsung screen from flickering?

1 Hold down the Volume Down Key and the Power Button simultaneously for 7 seconds. 2 Your device will restart and display the Samsung logo. Clearing your phone's cache can also help to stop the phone screen from flickering or blinking.


2 Answers

Try to set DoubleBuffered to true in Form.OnCreate.

like image 171
Matthias Avatar answered Oct 07 '22 08:10

Matthias


A general technique for reducing flicker in animated graphics operations is called double buffering. The idea is that you do all drawing to an offscreen bitmap, then when you've finished rendering the whole scene, copy the entire bitmap to the visible display.

The term also relates to hardware-supported techniques such as the ability to exchange the whole video display buffer with an alternate one, which is used in dedicated systems like console video games.

like image 25
Greg Hewgill Avatar answered Oct 07 '22 08:10

Greg Hewgill