Autor Beitrag
Tanrek
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Di 12.07.05 21:25 
So... ist warscheinlich nen einfaches problem, aber ich hab keine ahnung :wink:

ich habe meine Form wunderbar unsichtbar gemacht, um platz für ein Bild zu machen. Aber da das Bild nicht rechtwinklig ist, habe ich einige stellen auf transparent gesetzt. da jpeg's aber keine tranzparentfarben unterstützen, hab ich das als gif gespeichert.
wie kann ich jetzt dieses Gif als hintergrund in meine Form laden?

mfg
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Di 12.07.05 21:47 
user profile iconTanrek hat folgendes geschrieben:
So... ist warscheinlich nen einfaches problem, aber ich hab keine ahnung :wink:

ich habe meine Form wunderbar unsichtbar gemacht, um platz für ein Bild zu machen. Aber da das Bild nicht rechtwinklig ist, habe ich einige stellen auf transparent gesetzt. da jpeg's aber keine tranzparentfarben unterstützen, hab ich das als gif gespeichert.
wie kann ich jetzt dieses Gif als hintergrund in meine Form laden?

mfg


Ohne eine Grafikbibliothek gar nicht, weil Delphi GIF standardgemäß nicht unterstützt ;)

AXMD
Tanrek Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Di 12.07.05 22:21 
und woher bekomm ich eine?

mfg
Alstar
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 827



BeitragVerfasst: Di 12.07.05 22:22 
Die gibts z.B. bei den Jedis in der Jedi-VCL

Alstar
LH_Freak
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Di 12.07.05 23:27 
oder du nimmst PNGs und benutzt dann PNGImage (sorry, hab grad kein Link, such mal im Forum).
Dann kannst du ganz normal PNGs im Image laden.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 12.07.05 23:35 
IIRC kann man doch auch einfach die Eigenschaft des Images Transparent auf true setzen...? :gruebel: kann mich auch irren, oder vielleicht hab ich das thema verfehlt.. in diesem falle: sorry ;)

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
LH_Freak
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 385

Win XP
D7 PE, D2k5 Trial
BeitragVerfasst: Mi 13.07.05 00:25 
das Prob bei sowas ist:
sobald du z.B. mit Photoshop Schatten oder so einfügst, gibt das dann komische Flecken, die man bei PNGs nicht hat.
Außerdem hat dieses Format den Vorteil, dass nichts verpixelt, und die Dateien sehr klein sind
Tanrek Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34



BeitragVerfasst: Mi 13.07.05 15:30 
danke erstmal für die ganzen antworten :D

Also, die größe des bildes ist erstmal nicht das problem, aber es sollte schon schön aussehen... also nicht verpixelt.
wenn ich wieder zu hause bin, werd ich dann mal sehen, wie das mit den PNG's geht, ansonsten müsste mir mal jemand nen link geben, wo ich die jedi-VCL herbekomme

mfg
arj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 378

Win XP/Vista, Debian, (K)Ubuntu
Delphi 5 Prof, Delphi 7 Prof, C# (#Develop, VS 2005), Java (Eclipse), C++, QT, PHP, Python
BeitragVerfasst: Do 14.07.05 08:57 
Vielleicht hilft das auch weiter
www.swissdelphicente....php?showtopic=10088