Autor Beitrag
XpreZz
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Do 26.05.05 10:00 
Huhu !

Wie kann ich mein Image1 welches auf Form1 gezeichnet wird Speichern als *.bmp und auch wieder laden ?!
Will in meinem Programm ein "Speichern" Button machen mit dem sich das aktuelle Image1 speichern lässt und dann will ich einen "Bild laden" Button machen, welcher dann das zuvor gespeicherte Image1 wiederholt und zeichnet. Damit lade ich das Image und das funktioniert auch:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Button1Click(Sender: TObject);   
begin   
  if OpenPictureDialog1.Execute then begin   
    Image1.Picture.LoadFromFile(OpenPictureDialog1.FileName);   
    end;   
end;


Aber wie speicher ich es ?!

Danke !

Moderiert von user profile iconraziel: Code- durch Delphi-Tags ersetzt.
Moderiert von user profile iconraziel: Topic aus Sonstiges verschoben am Do 26.05.2005 um 15:12
Blackheart
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

ME
D3Prof.-D6Standard
BeitragVerfasst: Do 26.05.05 10:14 
SaveToFile
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Do 26.05.05 10:47 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
procedure TForm1.Button1Click(Sender: TObject);   
begin   
  if SavePictureDialog1.Execute then begin   
    Image1.Picture.SaveToFile(SavePictureDialog1.FileName);   
    end;   
end;

Wie oebn schon gesagt. :wink:
XpreZz Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 35



BeitragVerfasst: Do 26.05.05 12:03 
Danke genau das meinte ich und es klappt auch reibungslos.
Fabian W.
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1766

Win 7
D7 PE
BeitragVerfasst: Do 26.05.05 12:55 
Markierst du dann das Topic noch als beantwortet? Danke.