Autor Beitrag
klausiemausie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP, Win Vista Ultimate
Delphi 6
BeitragVerfasst: Do 07.05.09 13:21 
Hallo an alle,
ich hab ein kleines problem. und zwar will ich ganz simple ein bild laden mit
ausblenden Delphi-Quelltext
1:
image1.picture.LoadFromFile(ExtractFilePath(ParamStr(0)) + ('\kreuz7.jpg'));					

aber beim ausführen kommt die fehlermeldung "Unkown file extension (.jpg) ".
in nem anderen programm hat es mit diesem befehl ohne probleme geklappt. und .jpg's stehen auch zur auswahl wenn ich rein aus interesse im objektinspektor ein bild in das image lade. woran könnte das liegen?
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 480

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Do 07.05.09 13:35 
Hast du die Unit JPEG eingebunden, also in der Uses-Liste eingetragen?

_________________
We are, we were and will not be.