[Lazarus] Fastest way to show an image buffer

Leonardo M. Ramé l.rame at griensu.com
Fri Nov 5 21:01:21 CET 2010

Hi, I'm using this routine to show an image buffer in a TImage, but it
is not fast enough for my needs.

lBufStream := TMemoryStream.Create;
lBufStream.Write(lBuffer^, lBufSize);
lBufStream.Position := 0;

Here http://www.efg2.com/Lab/ImageProcessing/Scanline.htm are many
methods, and the one on Listing 15, "Optimized Way to Fill Scanlines
from In-Memory Array of Integers" looks very interesting, but it does
not work on Lazarus, any alternative?.

Leonardo M. Ramé

More information about the Lazarus mailing list