Autor Beitrag
FriFra
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 557

Win XP Prof, Win XP Home,Win Server 2003,Win 98SE,Win 2000,Win NT4,Win 3.11,Suse Linux 7.3 Prof,Suse Linux 8.0 Prof
D2k5 Prof, D7 Prof, D5 Standard, D3 Prof, K3 Prof
BeitragVerfasst: Mo 10.05.04 10:46 
Ich versuche ein gifimage Transparent zu machen, allerdings klappt das nicht so ganz...

Source:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
... 
          gif.Assign(bmp); 
          gif.OptimizeColorMap; 
          gif.BackgroundColor := clFuchsia; 
          gif.Transparent := True; 
          gif.SaveToFile('MyGif.gif'); 
...


Ich hab schon alles mögliche ausprobiert, aber ich bekomme es nicht hin :nixweiss:


Ich verwende übrigens folgende Version von TGifImage: finn.mobilixnet.dk/delphi/

_________________
Michael
(principal certified lotus professional - developer)
Bedaahr14
Hält's aus hier
Beiträge: 2

Win XP
D6 Prof
BeitragVerfasst: Sa 19.06.04 12:13 
Muss dich leider enttäuschen, aber .gif ist ein Bildformat das keine Transparenzinformationen abspeichert (gleich wie bei .jpeg), benutz besser .bmp für bilder, bei Videos jedoch wird es happig, suche bereits seit einigen Tagen fieberhaft, kann aber nicht finden, ob man in Delphi überhaupt ein Video transparent anzeigen kann (Tanimate und Avi geht auch nicht)... Poste aber Lösung, wenn ich sie finde...

_________________
Bug oder Feature? Wir wissen es nicht so genau...
tommie-lie
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 4373

Ubuntu 7.10 "Gutsy Gibbon"

BeitragVerfasst: Sa 19.06.04 12:52 
Bedaahr14 hat folgendes geschrieben:
aber .gif ist ein Bildformat das keine Transparenzinformationen abspeichert
GIF kann vielleicht keinen vollständigen Alpha-Kanal, aber 1-bit-Transparenz kann es, indem man eine Farbe aus dem Index als transparent markiert, dann sind alle Vorkommen dieser Farbe im Bild transparent. Guck dir mal unsere Icons (z.B. bei den Topicübersichten oder die Quote-Buttons) an, was meinst du, wie wir da nicht-rechteckige Formen hingekriegt haben? ;-)

Diese Version von TGIFImage kann laut Feature-Seite auch Transparenz in Files und Streams speichern. Benutzt habe ich es bisher aber noch nicht.

_________________
Your computer is designed to become slower and more unreliable over time, so you have to upgrade. But if you'd like some false hope, I can tell you how to defragment your disk. - Dilbert