[Lazarus] Fast drawing to canvas

William Oliveira Ferreira bdexterholland at gmail.com
Wed Feb 8 13:17:55 CET 2012


i've learned before to do the double buffer manually when using timage.
i think it's the more secure way, you don't need to guess if the widgetset
do itself....

but, obviously, depends on the context...
________________________________
William de Oliveira Ferreira
Bacharel em Sistemas de Informação


2012/2/8 Sven Barth <pascaldragon at googlemail.com>

> Am 08.02.2012 01:07, schrieb dhkblaszyk at zeelandnet.nl:
>
>  Hi,
>>
>> 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.
>>
>> procedure TForm1.Image1Paint(Sender: TObject);
>> begin
>> Image1.Picture.Bitmap.**LoadFromRawImage(bitmaplist[**
>> ScrollBar1.Position].RawImage,
>> False);
>>
>>
>> Application.ProcessMessages;
>> end;
>>
>>
> Why are you calling "Application.ProcessMessages" here?
>
> Regards,
> Sven
>
>
>
> --
> ______________________________**_________________
> Lazarus mailing list
> Lazarus at lists.lazarus.**freepascal.org<Lazarus at lists.lazarus.freepascal.org>
> http://lists.lazarus.**freepascal.org/mailman/**listinfo/lazarus<http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120208/8ae9faf4/attachment-0003.html>


More information about the Lazarus mailing list