Autor Beitrag
Handycommander
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Mo 15.08.05 17:15 
hi,

wie kann ich mehrere bildformate in bmp umwandelnt?
also ich mein *.jpg;*.jpeg;*.bmp;*.ico;*.emf;*.wmf
gibts da ne funktion?

danke
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Mo 15.08.05 17:25 
user profile iconHandycommander hat folgendes geschrieben:
wie kann ich mehrere bildformate in bmp umwandelnt?
also ich mein *.jpg;*.jpeg;*.bmp;*.ico;*.emf;*.wmf
gibts da ne funktion?

danke


Du kannst das Bild zuerst in ein TPicture-Objekt laden und dann einem TBitmap zuweisen, etwas so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
pic := TPicture.Create();
pic.LoadFromFile(bildDateiName);

bmp := TBitmap.Create();
bmp.Assign(pic.Graphic);
pic.Free();


Stefan
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 15.08.05 17:54 
um jpg und jpeg umzuwandeln musst du die unit JPEG einbinden
und ein TJpegImage erstellen welches du dann einem Bitmap zuweisen kannst (Assign)

einfach mal die forumsuche benutzen, da werden sie geholfen

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Stefan.Buchholtz
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 612

WIN 2000, WIN XP, Mac OS X
D7 Enterprise, XCode, Eclipse, Ruby On Rails
BeitragVerfasst: Mo 15.08.05 17:56 
user profile iconuall@ogc hat folgendes geschrieben:
um jpg und jpeg umzuwandeln musst du die unit JPEG einbinden
und ein TJpegImage erstellen welches du dann einem Bitmap zuweisen kannst (Assign)

einfach mal die forumsuche benutzen, da werden sie geholfen


Sobald die Unit jpeg eingebunden ist, sollte TPicture auch JPEGs laden können - es ist also kein spezieller Code für JPEGs nötig.

Stefan
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Mo 15.08.05 18:01 
so lang her das ich mal mit nem TPicture gearbeitet habe ;)

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit