Delphi-PRAXiS
Seite 1 von 2  1 2      

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Multimedia (https://www.delphipraxis.net/16-multimedia/)
-   -   Delphi Bild spiegeln (https://www.delphipraxis.net/69519-bild-spiegeln.html)

arukas 16. Mai 2006 13:52


Bild spiegeln
 
Hi Leute,

Ich weis ja schon wie man Bilder um einen bestimmten Punkt dreht, aber wie kann man ein Bild spiegeln?
Ich freu mich schon auf eure Lösung.

Danke,

Arukas

_seeker 16. Mai 2006 13:52

Re: Bild spiegeln
 
Hmm in paint ^_^

arukas 16. Mai 2006 13:54

Re: Bild spiegeln
 
danke für diese Antwort, aber ich würde gerne wissen wie man das programmieren kann, sonst würde ich nicht fragen!

chaosben 16. Mai 2006 13:59

Re: Bild spiegeln
 
Wer sucht der findet und findet und ...

Klaus01 16. Mai 2006 14:00

Re: Bild spiegeln
 
schau mal hier -> http://www.dsdt.info/tipps/?id=661

könnten Ansätze für Dich dabei sein.

Grüße
Klaus

[edit] da war der Ben schneller [/edit]

Robert Marquardt 16. Mai 2006 14:05

Re: Bild spiegeln
 
Wer die MS Dokumentation gut liest findet das:

StretchBlt creates a mirror image of a bitmap if the signs of the nWidthSrc and nWidthDest parameters or if the nHeightSrc and nHeightDest parameters differ. If nWidthSrc and nWidthDest have different signs, the function creates a mirror image of the bitmap along the x-axis. If nHeightSrc and nHeightDest have different signs, the function creates a mirror image of the bitmap along the y-axis.

arukas 16. Mai 2006 14:19

Re: Bild spiegeln
 
ich habs jetzt, danke

Robert Marquardt 16. Mai 2006 15:12

Re: Bild spiegeln
 
Na dann schreib doch mal ein Beispiel moeglichst mit StretchBlt, denn das duerfte das schnellste sein.

SirThornberry 16. Mai 2006 15:52

Re: Bild spiegeln
 
sicher das es mit scanlines nicht schneller ist? Oder wird innerhalb von StretchBlt auf Größenänderung geprüft

chaosben 17. Mai 2006 10:44

Re: Bild spiegeln
 
Zitat:

Zitat von SirThornberry
sicher das es mit scanlines nicht schneller ist? Oder wird innerhalb von StretchBlt auf Größenänderung geprüft

Eine interessante Frage und eine erstaunliche Antwort: Ich hab das mal mit einem 8,89MB Bitmap und der stümperhaften GetTickCount-Methode probiert. Das Ergebnis: Die Methode mit den Scanlines ist etwas mehr als 3 mal so schnell wie das Blten.


Alle Zeitangaben in WEZ +1. Es ist jetzt 02:14 Uhr.
Seite 1 von 2  1 2      

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