Delphi-PRAXiS
Seite 2 von 2     12   

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)

Robert Marquardt 17. Mai 2006 10:49

Re: Bild spiegeln
 
Dann poste mal die Source. Es duerfte uebrigens vom Grafikkartentreiber abhaengen.

chaosben 17. Mai 2006 10:53

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;

Robert Marquardt 17. Mai 2006 11:44

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 23:25 Uhr.
Seite 2 von 2     12   

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