Autor Beitrag
leseratte18
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Mo 01.10.07 12:47 
Wie lade ich mit Delphi JPEG's??????


Moderiert von user profile iconNarses: Topic aus Sonstiges (Delphi) verschoben am Mo 01.10.2007 um 13:49
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mo 01.10.07 12:51 
die Unit JPEG in die uses-Klausel einbinden!

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Mo 01.10.07 12:52 
Hi!

Na wenn du schon so ne Leseratte bist, dann benutz doch die Suchfunktion..findest du auf der rechten Seite ganz oben.

Ich vereinfach dir das ganze mal: Suche in der Entwickler-Ecke JPG JPEG

Und in Delphi gibts ein Objekt der Klasse TImage ;-)

LG
Stefan

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
leseratte18 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Mo 01.10.07 12:58 
TImage kenn ich, aber das kann doch nur Bitmaps und MetaFiles (Naja, und Icons) laden...
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mo 01.10.07 13:00 
und wenn du es anschließend noch über ein OpenPictureDialog öffnen willst nimm das hier

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


edit : Du musst in die Uses noch JPEG einfügen !

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300
leseratte18 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Mo 01.10.07 13:05 
Dat mit dem Öffnen-Dialog bringt mich nicht weiter!
Ich muss JPGs in BMPs umwandeln!
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Mo 01.10.07 13:06 
sag das doch gleich

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
uses jpeg;

procedure JpegToBmp(const Filename: String);
var
 jpeg: TJPEGImage;
 bmp: TBitmap;
begin
 jpeg:=TJPEGImage.Create;
 try
   jpeg.LoadFromFile(Filename);
   bmp:=TBitmap.Create;
   try
     bmp.Assign(jpeg);
     bmp.SaveToFile(ChangeFileExt(Filename, '.bmp'));
   finally
     bmp.free;
   end;
 finally
   jpeg.free;
 end;
end;
Aufgerufen werden kann die Prozedur beispielsweise so:

procedure TForm1.Button1Click(Sender: TObject);
begin
 if OpenDialog1.Execute then
   JpegToBmp(OpenDialog1.Filename);
end;

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
leseratte18 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WinXP
Delphi 3.2 Prof. +Delphi 7 Pers. +Delphi 2005 Pers.
BeitragVerfasst: Mo 01.10.07 13:07 
Mit D3.2 kann das noch kompliziert werden!
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mo 01.10.07 13:10 
Turbo Delphi 2005 PE ?

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Mo 01.10.07 13:12 
user profile iconGericasS hat folgendes geschrieben:
Turbo Delphi 2005 PE ?

Schleichwerbung :P

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mo 01.10.07 13:36 
user profile iconZeitGeist87 hat folgendes geschrieben:
user profile iconGericasS hat folgendes geschrieben:
Turbo Delphi 2005 PE ?

Schleichwerbung :P


ja,

www.delphipraxis.net..._delphi_download.php

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300
Kroko
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1284

W98 W2k WXP
Turbo D
BeitragVerfasst: Mo 01.10.07 13:49 
user profile iconleseratte18 hat folgendes geschrieben:
Wie lade ich mit Delphi JPEG's??????

user profile iconleseratte18 hat folgendes geschrieben:
Dat mit dem Öffnen-Dialog bringt mich nicht weiter!
Ich muss JPGs in BMPs umwandeln!


Wer weiß, was er wirklich will :?:

_________________
Die F1-Taste steht nicht unter Naturschutz und darf somit regelmäßig und oft benutzt werden! oder Wer lesen kann, ist klar im Vorteil!
ZeitGeist87
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1593
Erhaltene Danke: 20

Win95-Win10
Delphi 10 Seattle, Rad Studio 2007, Delphi 7 Prof., C++, WSH, Turbo Pascal, PHP, Delphi X2
BeitragVerfasst: Mo 01.10.07 13:51 
Für Kroko:
user profile iconleseratte18 hat folgendes geschrieben:
Dat mit dem Öffnen-Dialog bringt mich nicht weiter!
Ich muss JPGs in BMPs umwandeln!

_________________
Wer Provokationen, Ironie, Sarkasmus oder Zynismus herauslesen kann soll sie ignorieren um den Inhalt meiner Beiträge ungetrübt erfassen zu können.
GericasS
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 540

Windows Vista Home Premium
D2010, VisualStudio2008
BeitragVerfasst: Mo 01.10.07 14:02 
Er will definitiv JPG Bilder in Bitmapes umwandeln, meiner Meinung nach.

_________________
Alexander N.
Neue Bewaffnung Amilo xi2428 T9300
dummzeuch
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 593
Erhaltene Danke: 5


Delphi 5 ent, Delphi 6 bis Delphi XE8 pro
BeitragVerfasst: Mo 01.10.07 16:10 
Hi,

user profile iconGericasS hat folgendes geschrieben:
Turbo Delphi 2005 PE ?

Turbo Delphi 2005???? PE??? Muss man das kennen? Ich kenne nur Turbo Delphi Explorer bzw Professional und die basieren auf dem BDS 2006 (und nicht 2005).

verwirrt
twm

---

Und wo wir schon dabei sind: Gibt's bei Delphi 2007 irgendwo eigentlich den Sourcecode zur Unit jpeg?

twm

Moderiert von user profile iconNarses: Doppelposting entfernt.
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: Mo 01.10.07 16:31 
PE = Personal Edition (ich glaube, das ist das moderne Wort für Personal)
dummzeuch
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 593
Erhaltene Danke: 5


Delphi 5 ent, Delphi 6 bis Delphi XE8 pro
BeitragVerfasst: Mo 01.10.07 17:39 
Hi,

user profile iconJakob_Ullmann hat folgendes geschrieben:
PE = Personal Edition (ich glaube, das ist das moderne Wort für Personal)


Was PE bedeutet, ist mir schon klar, aber meines Wissens gibt es kein "Turbo Delphi 2005 PE".

twm