Autor Beitrag
tolosonic
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 15.06.06 14:02 
Hallo,

sorry, ist sicher voll die Delphi-DAU Frage, aber ich komm nicht drauf so richtig:

ich möchte ein JPEG einfach anzeigen, das geht ja ab Delphi 3. jetzt nehme ich ein TImage und weise dem mit dem Bildeditor eine Datei zu, die dann ja in die compilierte Datei eingebettet wird. Da kann ich aber kein JPEG auswählen.

Wie geht das mit einem JPEG?

danke!
(und nochmal sorry falls dumme frage)
Neidhard von Reuental
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 268

XP
BDS 2006 Prof
BeitragVerfasst: Do 15.06.06 14:08 
hast du die JPEG-Unit eingebunden?
tolosonic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 15.06.06 14:12 
mmh, wie mach ich das? bei uses TJPEG mit dazu schreiben, oder? aber das läuft doch daraus hinaus, dass ich das bild zur laufzeit einfüge (create), aber ist das bild dann auch in der kompilierten datei eingebettet?
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 15.06.06 14:17 
Das bild wird nur dann in die Exe reingeklatscht, wenn du es in der IDE Lädst oder per Resource einbindest. die unit heist nicht TJEPG sondern nur jpeg IIRC...
Hilfreich wäre zu wissen, welches Delphi du hast, da die TImage meines Delphi7 problemlos jpg dateien lädt und dann automatisch die Unit einbindet, wenn nötig...

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.


Zuletzt bearbeitet von JayEff am Do 15.06.06 14:22, insgesamt 1-mal bearbeitet
tolosonic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 15.06.06 14:20 
user profile iconJayEff hat folgendes geschrieben:
Das bild wird nur dann in die Exe reingeklatscht, wenn du es in der IDE Lädst oder per Resource einbindest.


kannst du das genauer erklären? sorry ^^
danke schonmal!
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 15.06.06 14:25 
Wenn du in der IDE (Integrated Developing Environment IIRC falls dir das nix sagt, eben deine Entwicklungsumbegung) im Objektmanager bei einem TImage unter Picture doppelklickst und eine Datei lädst, wird diese Datei, ich glaube sogar als Resource, eingebunden und beim Kompilieren in der Exe datei gespeichert.
Was dir vielleicht helfen könnte, wäre mal nach dem Stichwort Suche in: Delphi-Forum, Delphi-Library RESOURCE zu suchen und dir an zu schauen, wie du selbst Resource in deine Exe einbauen kannst und diese dann aus der Exe heraus laden kannst.

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
tolosonic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 15.06.06 14:31 
ok, ich denke, das hab ich erstmal kapiert, vielen dank! aber wie bekomme ich jetzt das jpeg schon zur entwicklungszeit zu sehen, mit dem picture-doppelklick kann ich ja nur bitmaps etc. auswählen.
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 15.06.06 14:33 
Du könntest es im FormCreate aus der resource laden. Welche Delphi version du hast wissen wir aber immernoch nicht ...

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
tolosonic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 15.06.06 14:35 
aber was bei form.create passiert seh ich doch auch erst zur laufzeit?!

sorry, delphi 3 pro (build 5.83)
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 15.06.06 14:42 
Die einzige möglichkeit: TJPEGImage. Soweit ich weis, ist das eine Komponente die man installiern kann, die dir erlaubt auch ein JPEG in der IDE zu laden... Such mal danach, ich bin mir nich so ganz sicher ob das stimmt da das bei Delphi5, mein erstes Delphi, kein Problem war...

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
tolosonic Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 36



BeitragVerfasst: Do 15.06.06 14:43 
siehe oben ^^
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Do 15.06.06 14:47 
Was meinst du? Den letzten Post hab ich nich ganz kapiert... (Mein Post wurde nie editiert. nie! glaub mir! nie! Ich hab da nicht nochmal nach deiner DVersion gefragt, das bildest du dir ein! :oops: )

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.