Autor Beitrag
LerooX
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Mo 06.04.09 14:38 
Hallo Community!

Ich hab mir die GraphicEx Package für Delphi 2009 heruntergeladen, die ich auf dieser Seite gefunden habe:
www.songbeamer.com/delphi/

Wenn ich eine PNG Datei lade (mit transparenten Hintergrund), sieht es am Schluss so aus:

Falsch: Moderiert von user profile iconNarses: Bild als Anhang hochgeladen

Richtig: Moderiert von user profile iconNarses: Bild als Anhang hochgeladen

Hat jemand eine Ahnung, wie ich diesen Fehler beheben kann?

Mfg. LerooX
Einloggen, um Attachments anzusehen!
LerooX Threadstarter
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Mo 06.04.09 17:29 
Ich habs auch mit Imaging *imaginglib.sourceforge.net/* versucht...
Es kommt immer das gleiche.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mo 06.04.09 20:42 
Delphi 2009 unterstützt doch bereits von Haus aus PNGs, oder? Warum dann die GraphicEx Lib verwenden?
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mo 06.04.09 21:05 
Richtig, man muss nur die Unit PNGImage einbinden.
LerooX Threadstarter
Hält's aus hier
Beiträge: 13



BeitragVerfasst: Mo 06.04.09 22:15 
Ja, aber ich brauche irgendwie die restlichen Bilder Typen.

Delphi unterstützt ja nicht so viel.
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Di 07.04.09 11:00 
user profile iconLerooX hat folgendes geschrieben Zum zitierten Posting springen:
Ja, aber ich brauche irgendwie die restlichen Bilder Typen.

Delphi unterstützt ja nicht so viel.


Für die anderen Typen kannst du ja die GraphicEx verwenden. Guck man in den Source der Lib und kommentier die Stelle aus, an der PNG-Grafiken registriert werden.
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 08.04.09 14:39 
Das geht sehr viel einfacher über die Konfigurationsdatei GraphicConfiguration.inc, dort reicht es in der Zeile dafür die Compilerdefinition mit einem Punkt zu deaktivieren:
ausblenden Delphi-Quelltext
1:
{.$define PortableNetworkGraphic} // *.png images