AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

Bitmap schnell kopieren

Ein Thema von Vjay · begonnen am 21. Jan 2004 · letzter Beitrag vom 21. Jan 2004
Antwort Antwort
Benutzerbild von dizzy
dizzy

Registriert seit: 26. Nov 2003
Ort: Lünen
1.932 Beiträge
 
Delphi 7 Enterprise
 
#1

Re: Bitmap schnell kopieren

  Alt 21. Jan 2004, 19:01
Kleiner Auszug aus dieser Seite:
Zitat von seite:
Several times in the various Delphi newsgroups someone suggests that the number of Scanline accesses should be minimized as an optimization technique since considerable overhead is thought to exist with each call. For example, instead of accessing Scanline once per row (as in many of the examples here), with some extra work Scanline can be accessed only twice at the beginning of the loop stepping through the rows. A "pointer" can be incremented using integer arithmetic instead of a Scanline call for each row.
Ist aber englisch. Kurzes Preview: Scanlineaufrufe kann man soweit minimirern, dass nur noch 2 Zugriffe auf Scanline nötig sind. Man gibt sich quasi die letzte Zeile, und weil Bilder (meistens*) "falschrum" im Speicher liegen incrementiert man einfach den Pointer und kommt trotzdem überall dran.
* genau dieses "meistens" ist eigentlich der wunde Punkt. Es kann vorkommen, dass dein Bild auf einmal irgendwann "richtig herum" im Speicher liegt, und dann ist latürnich alles gedreht... Aber auch das kann man glaub ich abprüfen. Codebeispiele sind auch dabei.

Ob das allerdings schneller als BitBlt ist, weiss ich nicht, und wage es auch zu bezweifeln... Aber wissen halt nicht so...


gruss,
dizzy

[edit=Luckie]Quote-Tags gefixt. Mfg, Luckie[/edit]
Fabian K.
INSERT INTO HandVonFreundin SELECT * FROM Himmel
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 08:43 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz