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



BeitragVerfasst: Mi 28.06.06 19:51 
Hallo!

Wie kann man den Inhalt einer Paintbox in einer jpg-Datei speichern?


Moderiert von user profile iconChristian S.: Topic aus Delphi Language (Object-Pascal) / CLX verschoben am Mi 28.06.2006 um 20:52
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Mi 28.06.06 21:50 
Hallo,

Paintbox besitzt keine Methode SaveToFile, aber TBitmap.
Also den Paintboxinhalt in ein TBitmap kopieren und dann speichern.
Weitere Infos findest Du dazu hier im Delphi-Forum mit Suche in der Entwickler-Ecke PAINTBOX SPEICHERN

Besser ein TBitmap zum Zeichen verwenden, den Inhalt dann bei Bedarf in der Paintbox ausgeben.
Den Inhalt des TBitmap kann man dann jederzeit in eine Datei speichern.

Das Stichwort ist OffScreenBitmap
Beispiel von Luckie

Das in Verbindung mit dem Beitrag (Link) in der Delphi-Praxis sollte weiterhelfen.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )