Autor Beitrag
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Di 24.07.07 18:05 
Hey,

wie im Titel schon gesagt möchte ich, das mein TImage die von mir im OpenPictureDialog ausgewählte Bild Datei anzeigt. Ich bin echt schon langsam am verzweifeln wie soll das gehen ?

PS : Was für eine Komponente braucht Delphi damit es im TImage auch .psd ( also Photoshop Projekt Datein anzeigen kann wie Infran View z.b )

Gruß GericasS
Silas
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 478

Windows XP Home
Delphi 2005, RAD Studio 2007, MASM32, FASM, SharpDevelop 3.0
BeitragVerfasst: Di 24.07.07 19:13 
Hallo!

Versuchs mal so:
ausblenden Delphi-Quelltext
1:
2:
if OpenPictureDialog1.Execute then
Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);

_________________
Religionskriege sind nur Streitigkeiten darüber, wer den cooleren imaginären Freund hat ;-)
GericasS Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Di 24.07.07 19:26 
Danke dir hat geklappt ! :)

ups, eine Frage wäre da noch, wieso zeigt das TImage keine jpg´s an ?
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 24.07.07 19:33 
uses...,JPEG;

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
GericasS Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Di 24.07.07 20:19 
user profile iconBlackheart666 hat folgendes geschrieben:
uses...,JPEG;


danke dir :D
ccdee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 28

WinXP, Linux
PHP, Delphi, VB, Cobal, Pascal
BeitragVerfasst: Di 24.07.07 21:35 
hab ein ganz ähnliches Problem

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TViewer.FileListBox1Change(Sender: TObject);
begin

Image1.Picture.LoadFromFile(FileListBox1.FileName);

end;



bekomm hier eine class exeption :S
hab uses JPEG hinzugefügt
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Di 24.07.07 22:04 
Schreib deinen Code mal ins OnClick.

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)