<font face="verdana,sans-serif">i've learned before to do the double buffer manually when using timage.<br>i think it's the more secure way, you don't need to guess if the widgetset do itself....<br><br>but, obviously, depends on the context...<br clear="all">
</font><font face="verdana, sans-serif">________________________________<br>William de Oliveira Ferreira<br>Bacharel em Sistemas de Informação</font><br>
<br><br><div class="gmail_quote">2012/2/8 Sven Barth <span dir="ltr"><<a href="mailto:pascaldragon@googlemail.com">pascaldragon@googlemail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Am 08.02.2012 01:07, schrieb <a href="mailto:dhkblaszyk@zeelandnet.nl" target="_blank">dhkblaszyk@zeelandnet.nl</a>:<div class="im"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I'm drawing a bitmap to the canvas by using LoadFromRawImage in<br>
combination with a TImage. The OnPaint code below works just fine. When<br>
I move the scrollbar, the images are drawn to the canvas, however there<br>
is still a bit of flicker.<br>
<br>
procedure TForm1.Image1Paint(Sender: TObject);<br>
begin<br>
Image1.Picture.Bitmap.<u></u>LoadFromRawImage(bitmaplist[<u></u>ScrollBar1.Position].RawImage,<br>
False);<br>
<br>
<br>
Application.ProcessMessages;<br>
end;<br>
<br>
</blockquote>
<br></div>
Why are you calling "Application.ProcessMessages" here?<br>
<br>
Regards,<br>
Sven<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
--<br>
______________________________<u></u>_________________<br>
Lazarus mailing list<br>
<a href="mailto:Lazarus@lists.lazarus.freepascal.org" target="_blank">Lazarus@lists.lazarus.<u></u>freepascal.org</a><br>
<a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://lists.lazarus.<u></u>freepascal.org/mailman/<u></u>listinfo/lazarus</a><br>
</div></div></blockquote></div><br>