Autor Beitrag
cux
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: Fr 17.12.04 15:35 
ich hab ein bild aus Image1.Picture in JPEGImage1 kopieren.
Hab folgenes versucht:
JPEGImage1.Assign(Image1.Picture);

Das funktioniert nicht.
Könnt ihr mir helfen?

cux
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Fr 17.12.04 15:56 
Da TJPEGImage von TGraphic abgeleitet ist, können wir hier auch eine Instanz von TGraphic assignen. Diese hat TImage unter Image1.Picture.Graphic. D.h.:
JPEGImage1.Assign(Image1.Picture.Graphic); funktioniert!


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems