Autor Beitrag
Sauger Chris
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Mi 15.10.03 20:21 
wie kann ich bilder ablaufen lassen bitte mit Quellcode

dank

Chris (delphi7)
maze2k
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 252

WIN 95, WIN NT 4.0, WIN 98, WIN 98SE, WIN 2000, RedHat Linux 7.3, Mandrake Linux 9.2, Knoppix Linux 3.3
D6 Pers
BeitragVerfasst: Mi 15.10.03 20:23 
Was meinst du mit "Bilder ablaufen lassen"?
Dass sie in ein Loch fließen wie eine Wanne voll Wasser? *lol*

Nee schon klar... ich denk mal du willst ne Animation, oder?
also dass verschiedene Bilder hintereinander geschaltet werden?

_________________
Wer das Konzept der Unendlichkeit verstehen will, muss nur das Ausmaß menschlicher Dummheit betrachten. (Voltaire)
Sauger Chris Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 228

Win XP, Linux SuSE 9.2
Delphi 4,Delphi 7 Ent.
BeitragVerfasst: Mi 15.10.03 20:48 
ja und kannst du mir weiter hlefen

dank

Chris(delphi7)
Raphael O.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1596


VS 2013
BeitragVerfasst: Mi 15.10.03 21:02 
du könntest die Bilder in ne Imagelist packen oder in ne Resource, und dann im Ontimer ereignis in einer Image-Komponente anzeigen lassen...
maze2k
ontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic star
Beiträge: 252

WIN 95, WIN NT 4.0, WIN 98, WIN 98SE, WIN 2000, RedHat Linux 7.3, Mandrake Linux 9.2, Knoppix Linux 3.3
D6 Pers
BeitragVerfasst: Mi 15.10.03 21:28 
Also entweder du machst daraus mit nem externen Programm ein Animated-Gif...

oder du machst was mit ner Imagelist und nem Timer...

Im OnTimer-Ereignis des Timers kommt einfach sowas:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
begin
  ImageList1.GetBitmap(bild_zaehler,Image1.Picture.Bitmap);
  Image2.Picture := image1.Picture;
  if (bild_zaehler <> ImageList1.Count - 1) then
    bild_zaehler := bild_zaehler + 1
  else
    bild_zaehler := 0;
end;


Hab ne halbe Ewigkeit rumprobiert, es geht aber die Bilder dürfen nich transparent sein...

Brauchst 2 Images... Image1.Visible = false;

in die Imagelist macht einfach deine Bilder rein...

der Code is nich perfekt, falls jemand was besseres hat bitte posten
(mir ist nämlich schleierhaft warum man ein zweites Image braucht, denn wenn ich nur eins nehm aktualisiert er das Bild net, erst wenn ich dann Image2.Picture das Picture von image1 zuweis geht es komischerweise...)


Aber die Prozedur funktioniert *gg*

_________________
Wer das Konzept der Unendlichkeit verstehen will, muss nur das Ausmaß menschlicher Dummheit betrachten. (Voltaire)
breakdancer1111
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 148

Windows 7 Home Premium 64Bit
Delphi XE2 Starter
BeitragVerfasst: Do 16.10.03 19:05 
bei www.swissdelphicenter.ch
hab ich mal sowas gefunden.