Autor Beitrag
FatalError
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: So 27.06.04 15:39 
Hi,

ich habe ein screenshotprogramm geschrieben, dass per image.picture.Savetofile ein Bild abspeichert. Per LoadfromFile oder mit der Windows-Bildvorschau lässt sich das Bild problemlos öffnen, aber nicht mit Picture It! oder PhotoEditor, auch nicht nach umbenennen oder verschieben der Datei.
Woran kann das liegen?

Grüße
Andy :?:
Keldorn
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 2266
Erhaltene Danke: 4

Vista
D6 Prof, D 2005 Pro, D2007 Pro, DelphiXE2 Pro
BeitragVerfasst: So 27.06.04 15:47 
Hallo

gibts du der Datei auch eine Endung ?

Mfg Frank

_________________
Lükes Grundlage der Programmierung: Es wird nicht funktionieren.
(Murphy)
FatalError Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: So 27.06.04 22:38 
Eine Dateiendung?

Ich denke mal du meinst z.B. '.bmp'. Ja, die gebe ich der Datei, eine Datei heisst dann z.B. (ohne die ''): 'screen.bmp' :?

Grüße
Andy
bobby
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 25

Win XP
D7 Prof
BeitragVerfasst: So 27.06.04 23:58 
I had same errors and I found that Delphi works just with 256-colors BMP images. No true color supported.
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Mo 28.06.04 00:22 
Es könnte daran liegen, daß du

Image.Picture.SaveToFile

benutzt. Versuch mal

Image.Picture.Bitmap.SaveToFile

_________________
Gruß
Martin
FatalError Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64

WIN ME
D6 Pers
BeitragVerfasst: Mo 28.06.04 13:15 
Hi MartinPb,

Bitmap.savetofile macht leider keinen Unterschied, lässt sich auch nicht mit Bildbearbeitungsprogrammen öffnen.

Grüße
Andy :?
teebee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 109


D6 Prof
BeitragVerfasst: Fr 02.07.04 07:53 
Probier vor dem Speichern malBitmap.PixelFormat := pf24Bit;Gruß, teebee
MartinPb
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 698



BeitragVerfasst: Fr 02.07.04 10:04 
Man braucht hier nicht alle Möglichkeiten aufzählen. Der Fehler liegt nicht an der gespeicherten Bitmap, sondern eher an seinen Programmen. Anscheinend kommen die mit der Bitmap nicht klar. So wie es aussieht sind es Programme die bei einen Handy oder Scanner dabei waren. Vielleicht erwarten sie eine bestimmte Art von Bitmaps, bzw. Jpegs.

_________________
Gruß
Martin
teebee
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 109


D6 Prof
BeitragVerfasst: Fr 02.07.04 10:29 
Es ist auf jeden Fall so, dass einige professionelle Bildbearbeitungsprogramme, z.B. Photoshop 6, keine Bitmaps mit 32 Bit Farbtiefe öffnen können.
Wenn ich ein Bitmap mit 32 Bit speichere, kann es dann eben nicht gelesen werden, mit 24 Bit unter Umständen schon.

Gruß, teebee