AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Multimedia GIF image transparent - wie
Thema durchsuchen
Ansicht
Themen-Optionen

GIF image transparent - wie

Ein Thema von eholzer · begonnen am 1. Jun 2012 · letzter Beitrag vom 1. Jun 2012
 
eholzer

Registriert seit: 22. Okt 2009
51 Beiträge
 
#4

AW: GIF image transparent - wie

  Alt 1. Jun 2012, 14:45
Was ich noch probiert habe:

Delphi-Quellcode:
var Ext: TGIFGraphicControlExtension;
  begin
    Image1.Picture.LoadFromFile('D:\Downloads\blumen00047.gif');
    gif := (Image1.Picture.Graphic as TGifImage);
    Ext := TGIFGraphicControlExtension.Create(gif.Images[0]);
    Ext.Transparent := True;

    Ext.TransparentColorIndex :=
        gif.Images[0].ActiveColorMap[gif.Images[0].Pixels[0,
        gif.Height-1]];
    gif.Images[0].Extensions.Add(Ext);
    
    gif.Animate := true;
    if gif.IsTransparent then
       gif.Transparent:= true;
  end
Geht auch nicht - nur die Animation funktioniert.

Danke
Eric
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 12:40 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz