Thema: Delphi animiertes Gif Problem

Einzelnen Beitrag anzeigen

thomas2009
(Gast)

n/a Beiträge
 
#1

animiertes Gif Problem

  Alt 4. Mär 2009, 23:42
Hallo

ich habe ein Problem mit gif Bild
Wenn ich das Gif-Bild direkt von einem Ordner lade dann gehlt.
Image1.Picture.LoadFromFile('animation1.gif'); Aber wenn ich das Bild von Resource lade, dann sehe ich keine Animation. das Bild bleibt stehen
Delphi-Quellcode:
var
  Res : TResourceStream;
  Bild : TGIFImage;
begin
  Res := TResourceStream.Create(Hinstance, 'animation1.gif', PChar('BMP'));
  Bild := TGIFImage.Create;
  try
    Bild.LoadFromStream(res);
  finally
    Res.Free;
  end;
  Image1.Picture.Graphic := Bild;
  Bild.Free;

end;
  Mit Zitat antworten Zitat