Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Object-Pascal / Delphi-Language (https://www.delphipraxis.net/32-object-pascal-delphi-language/)
-   -   Delphi TBitmap PixelFormat pf24Bit ScanLine Performance Problem! (https://www.delphipraxis.net/25787-tbitmap-pixelformat-pf24bit-scanline-performance-problem.html)

mck 12. Jul 2004 14:40


TBitmap PixelFormat pf24Bit ScanLine Performance Problem!
 
Hi Leute,

folgendes Problem mit Graphics.TBitmap

die Ausfürung folgender Zuweisung aus Delphi benötigt ca. 40ms :
PixelFormat := pf24Bit; (TBitmap)
nachdem das App fertig kompiliert ist, und Delphi geschlossen ist,
dauert diese Zuweisung ca. 360ms, und nachfolgende ScanLine noch länger!

Komisch ist auch folgendes:
Delphi ist zu.
sollte ich irgendwas ins Clipboard kopieren (z.b. Screenshot) before o.g. Zuweisung in meine APP erfolgt, ist diese Funktion wieder 40ms schnell.
wenn ich aber voher Text ins Clipboard kopiere (z.b. Text im Notepad) ist diese Zuweisung wieder 360ms langsam!


Kennt jemand die Lösung?
_________________
mfg,
ALex

ripper8472 20. Jul 2004 15:38

Re: TBitmap PixelFormat pf24Bit ScanLine Performance Problem
 
Hi!

könntest du zum Nachvollziehen etwas kurzen Beispielcode posten? Vielleicht liegts am Compiler oder am OS
Welche Delphi Version hast du?

Gruß, Christoph


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:03 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz