Autor Beitrag
Biarchiv
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 688



BeitragVerfasst: Fr 27.11.09 15:06 
Hallo,

warum ergibt

ausblenden Delphi-Quelltext
1:
TImage.Picture.SaveToFile('c:\file.bmp');					


ein unbekanntes format und

ausblenden Delphi-Quelltext
1:
TImage.Picture.bitmap.SaveToFile('c:\file.bmp');					


ergibt eine leere Datei? Sowie nach diesem Befehl zeigt die Image1 kein Bild mehr an. Es verschwindet einfach. Kann es daran liegen das es Stretch(et) in Delphi2006 Prof. wurde?
catweasel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 487
Erhaltene Danke: 1

Win 7 64bit
Delphi 7 Second Sedition V7.2
BeitragVerfasst: Sa 28.11.09 14:13 
Hi,

der Codeausschnitt ist etwas... sagen wir mal: minimalistisch...

Etwas mehr Quellcode könnte da sicher helfen das problem zu verstehen.

Keine Ahnung, vielleicht machst du ja irgendwas mit FreeImage falsch. Oder du zeichnest auf das Canvas objekt des TImage und nicht auf TImage.Picture.Bitmap.Canvas.....

... aber so ohne weitere Hinweise von dir bleibt das nur spekulatives Geschwurbel....

Regards,
Catweasel

_________________
Pommes werden schneller fertig wenn man sie vor dem Frittieren einige Minuten in siedendes Fett legt.
ffgorcky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 573

WIN XP/2000 & 7Prof (Familie:Win95,Win98)

BeitragVerfasst: Sa 28.11.09 21:16 
Also mir sieht das im Moment so aus, als ob Du ein noch nicht initialisiertes Image (also DeinImage.Picture=null) speichern möchtest.

Dann könnte der Fehler doch so auftreten. - Ansonsten müsstest Du wirklich erst mal ein bisschen mehr Quelltext hier reinschreiben, damit wir uns genauer reinfinden.
elundril
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3747
Erhaltene Danke: 123

Windows Vista, Ubuntu
Delphi 7 PE "Codename: Aurora", Eclipse Ganymede
BeitragVerfasst: Sa 28.11.09 21:18 
user profile iconffgorcky hat folgendes geschrieben Zum zitierten Posting springen:
(also DeinImage.Picture=null)


nil wenn ich bitten darf. auch wenn der compiler glaub ich von null auf nil ausbessert ;)

lg elundril

_________________
This Signature-Space is intentionally left blank.
Bei Beschwerden, bitte den Beschwerdebutton (gekennzeichnet mit PN) verwenden.