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

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Fr 19.08.05 11:16 
Hi,

irgendwie klappt die umwandlung aufeinmal nicht mehr... den code habe ich aber nicht verändert...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
procedure TForm1.Umwandlung1;
var
  pic: TPicture;
  bmp: TBitmap;
begin
  pic := TPicture.Create();
  pic.LoadFromFile(Edit1.Text);
  bmp := TBitmap.Create();
  bmp.Assign(pic.Graphic);
  bmp.SaveToFile('1.bmp');
  pic.Free();
end;


danke
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Fr 19.08.05 11:23 
Was passiert? Was soll passieren? ;)

BTW: Warum so umständlich?! TPicturehat doch auch Bitmap?!
:arrow: TPicture.Bitmap.SaveToFile

Wo ist das Problem... :gruebel:
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Fr 19.08.05 11:28 
das soll ne umwandlung von verschiedenen bildformaten in bitmap sein und dann soll das umgewandelte bitmap gespeichert werden
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Fr 19.08.05 11:32 
und
user profile iconWeBsPaCe hat folgendes geschrieben:
Was passiert?


:roll: :D und btw: du lässt das bmp nicht frei ;)

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 19.08.05 11:37 
Wenn du das Problem hast, dass jpg und sowas nicht geht: das wird auch nicht unterstützt!
In der JEDI VCL sind einige Konvertierungen implementiert, zum Beispiel wird in JvThumbnail einiges umgewandelt...
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Fr 19.08.05 11:39 
nichts passiert. also die datei wird nicht abgespeichert und das mit dem bmp.free(); funktioniert auch ned
Dargor
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 59

Win2k SP4, WinXP Pro SP1
D6 Pers
BeitragVerfasst: Fr 19.08.05 11:44 
Und die Pfad- & Dateiangabe im Edit1.Text ist auch richtig?
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Fr 19.08.05 11:49 
ja ist sie
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Fr 19.08.05 11:53 
Ja, aber was für eine datei ist das denn, also welcher Dateityp?
Handycommander Threadstarter
ontopic starontopic starofftopic starofftopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 1054

Windows XP Pro, Vista
Visual Studio 2008
BeitragVerfasst: Fr 19.08.05 12:04 
jpg, png, gif...
also jpg hab ich in uses eingefügt, sowie ne unit für png und gif.
kann sie auch in einem image anzeigen
nur die umwandlung klappt leider nicht