Autor Beitrag
willy
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 27

WinXP Pro (SP2), Suse9.3 Pro, Debian6

BeitragVerfasst: Di 30.05.06 18:44 
Hallo,
ich habe ein Problem :P

Ich habe ein Bild, das ich umdrehen möchte. DIes sit ja mit einem Bitmap ohne Probleme möglich

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
Procedure TForm1.spiegeln(Picture: TBitmap);
var
i,j: integer;
begin

for i := 0 to Picture.Height-1 do
  for j := 0 to Picture.Width-1 do
   Picture.canvas.Pixels[j, Picture.Height-i-1] := Picture.canvas.Pixels[j, i];

end;


Und nun möchte ich fragen ob es auch eine möglichkeit gibt ein anderes Dateiformat außer Bitmap zu spiegeln? und wnen ja wie...schonmal danke :)

Willy
_frank_
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 343
Erhaltene Danke: 1

Win XP
Delphi 3 Prof / Turbo Delphi Explorer
BeitragVerfasst: Di 30.05.06 19:27 
Versuchs mal wegen ner GIF-Komponente bei Torry oder DSP

übrigends Canvas.pixels ist verdammt langsam, schau dir mal scanline an ;)

Gruß Frank

_________________
EB FE (die wahrscheinlich kürzeste Endlosschleife der Welt :) )
BA 01 00 00 00 52 EB 09 BB 4D 11 86 7C FF D3 EB 0D E8 F2 FF FF FF 63 68 61 72 6D 61 70 00 C3