Autor Beitrag
leseratte18
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Di 02.10.07 08:40 
Wie wandelt man GIF in BMP um und umgekehrt?
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 02.10.07 08:53 
Zuerst mal solltest du dir die GIFImage-Bibliothek bei Torry.net runterladen, damit Delphi überhaupt GIF kann. Dann kann man die Konverterung durch eine Zuweisung mit Assign machen, z.B. so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
  bmp := TBitmap.Create;
  gif := TGIFImage.Create;
  try
    bmp.LoadFromFile(bmpDateiName);
    gif.Assign(bmp);
    gif.SaveToFile(gifDateiName);
  finally
    bmp.Free;
    gif.Free;
  end;


GIF in BMP funktioniert umgekehrt genauso.

Stefan

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.
leseratte18 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Di 02.10.07 08:55 
Kostet das runterladen was?
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Di 02.10.07 09:06 
Nein, die ist kostenlos.

_________________
Ein Computer ohne Windows ist wie eine Schokoladentorte ohne Senf.
dummzeuch
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 593
Erhaltene Danke: 5


Delphi 5 ent, Delphi 6 bis Delphi XE8 pro
BeitragVerfasst: Di 02.10.07 09:29 
Hi,

user profile iconStefan.Buchholtz hat folgendes geschrieben:
Zuerst mal solltest du dir die GIFImage-Bibliothek bei Torry.net runterladen, damit Delphi überhaupt GIF kann.


Alternativ gibt's auch in der JVCL und rxlib entprechende units.

twm