Autor Beitrag
Blamaster
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: So 18.05.08 12:13 
Hi,

ich möchte während der Laufzeit image1 ein Bild zu weisen.

image1.Picture.LoadFromFile(Test);

Test ist ein string der den kompletten Bildpfad inkl. Dateiendung enthält.

Wenn in dem Pfad ein Bild mit der Endung .png enthalten ist, wird es so geöffnet wie es soll.

Wenn allerdings ein Bild mit der Endung .jpg oder .gif im string steht, kommt folgender Fehler während der Laufzeit:

"Unbekannte Bilddateierweiterung (.jpg)"

Wenn ich allerdings im Objektmanager manuell ein .jpg oder .gif Bild zuweise lädt er es ohne zu murren.

Wie kann ich das Problem beheben ?

mfg Blamaster
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 18.05.08 12:49 
bei uses manuell "jepg" einfügen???

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.
Fabian E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: So 18.05.08 12:57 
Wie ist denn dein Pfadstring formatiert?
Hast du vielleicht "/" statt "\" genommen?

gruß
Blamaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: So 18.05.08 13:05 
Jau Pfad stimmt mit png funktioniert es im selben Ordner ja auch.

Jo ich kann unter Image1 -> Picture jpg laden. Liegt wohl an der pngimages unit.
Fabian E.
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 554

Windows 7 Ultimate
Visual Studio 2008 Pro, Visual Studion 2010 Ultimate
BeitragVerfasst: So 18.05.08 13:14 
ich hatte den Fehler auch schon öfter.
Aber keine Ahnung wie ichs behoben habe...
Probiers mal mit *.jpeg als Endung.

gruß
Blamaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: So 18.05.08 13:18 
Hilft leider auch nicht :(
Blamaster Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 164



BeitragVerfasst: So 18.05.08 13:47 
Hi,

ich habe gerade mal die Jedei Kompo installiert.

Nun kann ich sowohl png als auch jpg laden.

Bleibt nurnoch gif welches Probleme bereitet.

Nutze jetzt JVImage.

Muss ich vielleicht noch irgendeine unit in die uses einbinden für gif Bilder ?

mfg blamaster
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: So 18.05.08 13:54 
ich bin mir nicht sicher aber ich glaube schon. vielleicht steht was in der hilfe.

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.