Autor Beitrag
anno2007
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win 7, Ubuntu
Delphi XE
BeitragVerfasst: Do 19.03.09 17:41 
Hi,
ich weis, das Thema gibts bestimmt schon 2000 Mal in dem Forum hier ;).
Für das laden einer PNG Datei braucht man (wenn man nicht irgendwie die 2009er Version benutzt) extra Bibliotheken.
Gefunden hab ich jetzt sourceforge.net/projects/pngdelphi. Allerdings wird dort kein Download angeboten und die Bibliothek scheint schon ein bisschen alt zu sein?
So, jetzt die Frage, ob es sich lohnt auf Delphi 2009 umzusteigen, oder wo ich eine gute Bibliothek herbekomme.

Ich wollte mich nur mal absichern ;).

anno2007


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Do 19.03.2009 um 18:29
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Do 19.03.09 17:46 
Also mein Delphi 7 kann ohne weiteres PNGs laden.
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Do 19.03.09 17:47 
Hier gibt die TPNGImage: Klicke genau hier xD
user profile iconJakob_Ullmann hat folgendes geschrieben:
Also mein Delphi 7 kann ohne weiteres PNGs laden.

Mhh... musst iwie ne Kompo drinne haben, bei mir geht das nicht!


Zuletzt bearbeitet von MDX am Do 19.03.09 17:52, insgesamt 1-mal bearbeitet
Jakob_Ullmann
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1747
Erhaltene Danke: 15

Win 7, *Ubuntu GNU/Linux*
*Anjuta* (C, C++, Python), Geany (Vala), Lazarus (Pascal), Eclipse (Java)
BeitragVerfasst: Do 19.03.09 17:49 
Is ein ganz normales Image und es geht auch im Entwurfsmodus. Aber jetzt sehe ich, dass er heimlich die PngImage1.pas einbindet. Blick auf den Header:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
{Version 9.44}
{***************************************************************}
{*                    PNGImage1.PAS                             *}
{*                                                             *}
{*   Thanks to Gustavo Daud for this Pascal implementation     *}
{*   for PNG Images.                                           *}
{*                                                             *}
{*   Thanks also to Paul TOTH for his Delphi 3 Adaptation      *}
{*                                                             *}
{***************************************************************}

{*******************************************************}
{                                                       }
{       Portable Network Graphics decoder               }
{       * decode & encode png files in delphi *         }
{                                                       }
{       EMAIL: gustavodaud@uol.com.br                   }
{                                                       }
{*******************************************************}

{ Delphi 3 compatibility and french translation by Paul TOTH <tothpaul@free.fr>}
anno2007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win 7, Ubuntu
Delphi XE
BeitragVerfasst: Do 19.03.09 18:54 
Hi,
danke schon mal an alle die mir helfen und es vielleicht auch noch werden :).

@MDX, thx für den Link.
Kann mir aber vielleicht noch irgendjemand sagen, wie ich jetzt ein PNG-Bild laade?
Installiert hab ich die Bibliothek so, wie es in der Hilfedatei steht, aber weiter komm ich nicht :(.

Danke!

anno2007

---Moderiert von user profile iconNarses: Beiträge zusammengefasst---

Hat sich erledigt.

www.delphipraxis.net/post888259.html
--> Beitrag 8, da hat jemand netterweise ein Package erstellt, mit dem man PNG-Bilder direkt mit dem ganz stinknormalen Laden-Dialog als TImage benutzen kann.

Allerdings ist das nicht die Antwort auf meine Frage, weil das ja irgendwie auch manuell gehen muss, ich würde gerne verstehen wie das funktionieren soll ;).

anno2007
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Do 19.03.09 21:27 
Naja, du musst eigentlich nur die pngimage.pas in ne dpk machen, wie ein Projekt öffnen und Installieren klicken!
anno2007 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 68

Win 7, Ubuntu
Delphi XE
BeitragVerfasst: Do 19.03.09 21:29 
Achso, dass is also beabsichtigt, dass das man das über den normalen Dialog zum hinzufügen von Bildern macht ;).

Na dann, DANKESCHÖN an alle, besonders an dich MDX :).
Es kommen noch weitere Fragen, verlasst euch drauf :D.

anno2007
MDX
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 595
Erhaltene Danke: 4

Windows 8.1, Linux Debian 8, Android Lollipop
Delphi, PHP, Java (Android)
BeitragVerfasst: Do 19.03.09 21:32 
No Problem :wink:

Na dann bin ich schonmal gespannt^^