Autor Beitrag
Ironwulf
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mo 05.06.06 01:21 
Hy,
gibt es eine funktion die sagt welches Format (bmp,jpg,...) ein Bild hat

das nach der dateiendung zumachen erscheint mir nich allzu klug da es einige bmps gibt die sich als jpg tarnen ;D oder auch mal jpg groß geschrieben wird (JPG)
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Mo 05.06.06 09:00 
Also das mit groß kleinschreibung ist ja kein Prob. UpperCase, LowerCase,
viele Bildprogramme arbeiten ähnlich, denke ich.
z.B. ich benenne ein Jpeg um und nenne es bild.bmp öffne es und es kommt gleich die Meldung das es kein gültiges Jpeg is, odersowas

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Mo 05.06.06 09:31 
Schau dir die ersten paar Bytes der Datei an. Ein Bitmap beginnt immer mit "BM", ein JPEG scheinbar mit der Bytefolge FF D8 FF E0 (grade ein paar mit Hxd geöffnet, und da war es so ;-)). Details dazu sollte man auf www.wotsit.org finden.

_________________
We are, we were and will not be.
Ironwulf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 733
Erhaltene Danke: 2



BeitragVerfasst: Mo 05.06.06 14:48 
ok, danke ich werds mir mal anschaun