![]() |
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 |
Re: Bild spiegeln
Hmm in paint ^_^
|
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!
|
Re: Bild spiegeln
|
Re: Bild spiegeln
schau mal hier ->
![]() könnten Ansätze für Dich dabei sein. Grüße Klaus [edit] da war der Ben schneller [/edit] |
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. |
Re: Bild spiegeln
ich habs jetzt, danke
|
Re: Bild spiegeln
Na dann schreib doch mal ein Beispiel moeglichst mit StretchBlt, denn das duerfte das schnellste sein.
|
Re: Bild spiegeln
sicher das es mit scanlines nicht schneller ist? Oder wird innerhalb von StretchBlt auf Größenänderung geprüft
|
Re: Bild spiegeln
Zitat:
|
Re: Bild spiegeln
Dann poste mal die Source. Es duerfte uebrigens vom Grafikkartentreiber abhaengen.
|
Re: Bild spiegeln
Quick&Dirty:
Delphi-Quellcode:
procedure TForm3.FormClick(Sender: TObject);
var bmp : TBitmap; StartBlt, StopBlt, StartSl, StopSl : Cardinal; begin bmp:=TBitmap.Create; bmp.Assign(Image1.Picture.Bitmap); StartBlt:=GetTickCount; StretchBlt(Self.Canvas.Handle, 200,200, -bmp.Width,bmp.Height, bmp.Canvas.Handle, 0,0, bmp.Width, bmp.Height, SRCCOPY); StopBlt:=GetTickCount; StartSl:=GetTickCount; SpiegelnVertikal(bmp); BitBlt(Self.Canvas.Handle, 0,0, bmp.Width,bmp.Height, bmp.Canvas.Handle, 0,0, SRCCOPY); StopSl:=GetTickCount; MessageDlg('Blt: '+InttoStr(StopBlt-StartBlt)+#13#10+'SL: '+InttoStr(StopSl-StartSl), mtWarning, [mbOK], 0); bmp.Free; end; |
Re: Bild spiegeln
Also irgendwie will das nicht bei mir. Schick mir doch mal die komplette Source. robert_marquardt att gmx dott de
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 05:22 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