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



BeitragVerfasst: So 05.11.06 00:32 
Wie kann ich die Größe eines Bildes (also byte nicht höhe x breite) bestimmen?
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: So 05.11.06 00:35 
Was für ein Bild? BMP, JPG, GIF, PNG, WMF,...?

AXMD
cux Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 51



BeitragVerfasst: So 05.11.06 11:13 
jpeg
liegt in einem TPicture
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 05.11.06 14:26 
Moin!

Die Bildgröße oder die Dateigröße? ;)

a) Bildgröße: Höhe x Breite x BytesProPixel :D
b) Dateigröße: einen temp. TMemoryStream anlegen und da rein streamen, dann die Größe aus .Size lesen. Keine andere Chance, da JPG kompimiert ist und du nicht wissen kannst, wie sich das auf die Bilddaten auswirkt. :|

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.