Autor Beitrag
henny
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 16:38 
Kann man eine animation in einem edit abspielen?
Und wenn ja wie mache ich das?
oder brauche ich dafür einen anderen Komponenten?


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mo 08.06.2009 um 16:49
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.06.09 16:40 
Wie meinst du das? Laufschrift?
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 16:42 
Nein ich möchte eine amimation mit bildern laufen lassen!
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mo 08.06.09 16:45 
Und warum bitte schön soll das in einem Edit ablaufen?
Wenn die Animation bereits als Video vorliegt, nimm TAnimate. Ansonsten: Selbst programmieren.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell


Zuletzt bearbeitet von Timosch am Mo 08.06.09 21:42, insgesamt 1-mal bearbeitet
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 16:49 
oh ups ich meinte in einem image! :oops:
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.06.09 16:51 
Und in welchem Format liegt die Animation vor? Willst du die selbst zeichnen, einzelne Bilder ablaufen lassen, ein GIF abspielen, ...?
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 16:54 
habe noch keine passende animation gefunden also währen selbst gemalte bilder gar nicht so schlecht!
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.06.09 16:58 
Ich meinte jetzt mit Delphi selbst zeichnen. Dann würde ich mir TPaintBox und TCanvas einmal anschauen. ;-)
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 17:00 
achso!
und wenn ich jetzt noch eine animation finden würde wie programmiere ich das?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.06.09 17:05 
Zum Beispiel wie oben gesagt wurde mit TAnimate. Oder du benutzt für das benutzte Format entsprechende Units aus dem Internet (GifImage.pas usw.).
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 17:10 
wenn ich ein bild ins image laden möchte heißt es ja:
image1.picture.loadfromfile('...')
durch was muss ich da das wörtchen picture ersetzen?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 08.06.09 17:12 
Das wäre extrem langsam so. Du müsstest die Einzelbilder alle laden (z.B. in eine TBitmap) und dann auf die Zeichenfläche zeichnen. Zum Beispiel mit PaintBox1.Canvas.Draw...
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Mo 08.06.09 17:19 
Das währe mir eigentlich egal wenn das langsam ist ich will nur wissen durch was ich das
wörtchen picture (siehe oben) ersetzen muss wenn ich eine schon fertige animation habe! :?:
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 09.06.09 00:49 
So kannst du auch eine Animation laden, wenn du eine passende GIF-Unit z.B. in dein Projekt eingebunden hast. GraphicEx sollte das auch unterstützen.
Das geht alles via Picture, dahinter muss eben nur ein entsprechender Adapter vorhanden sein.
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Di 09.06.09 13:40 
Und durch was muss ich hier:
image1.Picture.loadfromfile('');
Picture ersetzen?
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 09.06.09 13:47 
Wieso willst Du die Picture-Eigenschaft ersetzen?
henny Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 126



BeitragVerfasst: Di 09.06.09 13:51 
ach ne ich wollte fragen wieso das image keine gif dateien abspielen kann?
und mit welchem symbol kann ich eine gif datei abspielen?
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 09.06.09 13:56 
Dann brauchst Du die Unit GifImage (IIRC von Anders Melander). Die kannst Du Dir frei im Internet herunterladen, zumindest für Delphi 2007 gibt es die für registrierte Benutzer sogar direkt von Codegear als Update.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19322
Erhaltene Danke: 1749

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Di 09.06.09 18:43 
In einem anderen Thread habe ich auch gerade den Link kurz rausgesucht und gepostet:
user profile iconjaenicke hat folgendes geschrieben Zum zitierten Posting springen:
Hier gibts dazu eine Unit:
www.tolderlund.eu/delphi/
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Di 09.06.09 21:10 
Um Gottes Willen, da bekommt man ja einen Krampf im Zeigefinger vom vielen Scrollen... :lol:

Also, um noch mehr so kurze Antworten zu vermeiden:

  1. Du lädst dir GIFImage herunter (Link hat user profile iconjaenicke gepostet)
  2. Du erstellst dir eine GIF-Animation. Wenn du kein Programm dafür hast, google mal nach Suche bei Google GIF ANIMATOR FREE o.ä.
  3. Um die Animation einzubinden, hast du zwei Möglichkeiten:
    1. Per Code:
      1. Füge die Unit GIFImage in die uses-Liste ein.
      2. Lade die Animation so: Image1.Picture.LoadFromFile('...'), denke an absolute Pfadangaben

    2. Per Formular-Designer:
      Lade die Animation, als würdest du ein Bild laden: Klicke auf "..." neben der Eigenschaft "Picture", und wähle die Datei aus

Das war's. Wenn du noch fragen hast, schreibe aber bitte mal mehr als nur einen Satz und überlege, welche Informationen wir vielleicht auch noch brauchen könnten, dann müssen wir dir nicht alles aus der Nase heraus ziehen.

Grüße,
Yogu