[Lazarus] Fast drawing to canvas

Felipe Monteiro de Carvalho felipemonteiro.carvalho at gmail.com
Wed Feb 8 08:25:21 CET 2012


2012/2/8  <dhkblaszyk at zeelandnet.nl>:
> I'm drawing a bitmap to the canvas by using LoadFromRawImage in combination
> with a TImage. The OnPaint code below works just fine. When I move the
> scrollbar, the images are drawn to the canvas, however there is still a bit
> of flicker.

I don't recommend using TImage for fast changing graphics. The really
fast and reliable way to draw motion graphics is to implement a
TCustomControl descendent like explained in the wiki:

http://wiki.lazarus.freepascal.org/Developing_with_Graphics#Create_a_custom_control_which_draws_itself

-- 
Felipe Monteiro de Carvalho




More information about the Lazarus mailing list