From: "Matthias Thoma" Newsgroups: borland.public.kylix.graphics References: <3e4262fd@newsgroups.borland.com> Subject: Re: TBitmap.ScanLine[] is slow Date: Fri, 7 Feb 2003 11:16:30 +0100 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 80.139.103.156 Message-ID: <3e438773@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1044612979 80.139.103.156 (7 Feb 2003 02:16:19 -0800) Path: newsgroups.borland.com!not-for-mail Xref: newsgroups.borland.com borland.public.kylix.graphics:1139 > I get the first pixel address using TBitmap.ScanLine[0] - 250 millisec > spent, then I run my MMX 'mix' procedure - 30 millisec spent. Scanlines operate on QImages not on QPixmaps. The first time you call scanline the pixmap is converted to an QImage - that is why all the following calls needs less time than the first one. Matthias Thoma -- Project JEDI - 2001 Spirit of Delphi Award Winner www.delphi-jedi.org