Autor Beitrag
J:org
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Di 02.12.03 14:26 
will mit TImage ein transparentes bild einfügen. Gif nimmts nicht, was dann?

.ico hab ich auch schon probiert geht auch nicht.

wie umgehe ich dieses problem oder ist es grundsätzlich nicht möglich ein transparentes bild in delphi einzufügen?

danke
J:org
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 02.12.03 14:28 
Als alleraller letzten ausweg könntest du den TWebBrowser nehmen...

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
J:org Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Di 02.12.03 14:33 
hmm der scheint bei delphi 6 personal nicht dabei zu sein ?!?
BungeeBug
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 901



BeitragVerfasst: Di 02.12.03 14:44 
da haste recht. Aber guck doch mal bei Torry, da gibbet Komponenten die können wer weis was für Formate anzeigen. Ausserdem kann die TImage Kompo glaub ich nur *.bmp :)
J:org Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Di 02.12.03 15:09 
timage kann: jpg, bmp, ico (steht echt dran...ka warums net ging) emf, wmf.

was ist torry? hast du mir n link plz?

wenn ich neue komponente benutze, werden diese dann mit in die exe kompiliert und müssen nicht extra vom user irgendwie nachinstalliert werden?
Chatfix
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1583
Erhaltene Danke: 10

Win 10, Win 8, Win 7, Win Vista, Win XP
VB.net (VS 2015), MsSQL (T-SQL), HTML, CSS, PHP, MySQL
BeitragVerfasst: Di 02.12.03 15:12 
www.torry.net

und nein (es sei den eine kompo benutzt dlls oder so, die musst du natürlich mitliefern sofern sie nicht standard sind)

_________________
Gehirn: ein Organ, mit dem wir denken, daß wir denken. - Ambrose Bierce
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Mi 03.12.03 15:48 
Hallo!
TWEbBrowser kannst du dir importieren:
Komponente -> ActiveX importieren -> Microsoft Internet Controls

und außerdem, TImage besitzt eine Eigenschft transparent das setzt du auf true. Die Transparentefarbe kannst du so einstellen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.FormCreate(Sender: TObject);
begin
...
IMage1.Bitmap.TransparentColor:= clRed; //o.ä.
...
end;


Stefan :nut:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
J:org Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mi 10.12.03 08:36 
also das mit dem transparent auf true setzen funktioniert nicht, kanns rein logisch ja auch gar nicht weil woher soll das wissen was bei meinem bitmap hintergrund ist und was nicht?
J:org Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 17



BeitragVerfasst: Mi 10.12.03 08:39 
ich nehme meine aussage zurück, es funktioniert sogar *verwundert* :D
CenBells
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1547

Win 7
Delphi XE5 Pro
BeitragVerfasst: Mi 10.12.03 12:45 
Hallo,

ein Bitmap in einer TImage komponente kann transparent angezeigt werden. Als refernzfarbe nimmt TImage die Farbe, die das Bitmap in dem Pixel in der Ecke links unten besitzt.

Gruß
Ken

_________________
Eine Klasse beschreibt die Struktur und das Verhalten einer Menge gleichartiger Objekte.
Simon Joker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236
Erhaltene Danke: 1



BeitragVerfasst: Do 11.12.03 10:21 
Hi J:org

verwende doch einfach TGifImage. Da hast du vollen Support für Gif-Bilder. Das findest du unter Torry unter diesem Link: www.torry.net/vcl/gr...ics/gif/gifimage.exe

noch die Beschreibung von Torry:

Zitat:
TGIFImage v.2.2 FWS 966 Kb 3 May 2000
By Anders Melander. Full TGraphic implementation of the GIF graphics format. Reads, writes and displays animated and transparent GIFs and can convert to and from any format supported by TGraphic (e.g TBitmap, TJPEGImage, TIcon, TMetaFile etc.). Implements the complete GIF87a and GIF89a specification and most common GIF extensions. Advanced features include:
Integrates with TPicture to add GIF support to the TImage, TOpenPictureDialog and TSavePictureDialog components. Also works at design time.
Imports images with more than 256 colors using color quantization and 6 different dithering methods (e.g. floyd s!teinberg).
LZW-less compression. Optionally saves GIFs without using the LZW algorithm. This means no more royalties to Unisys if you only write GIFs.
Multi threaded drawing engine.
GIF optimizer reduces the size of your GIFs.
GIF to AVI and AVI to GIF converter.
Extensive help and many examples included.
Fully functional
Source: Included