Announcement

Collapse
No announcement yet.

Bildgroesse eines JPG-Bildes ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Bildgroesse eines JPG-Bildes ?

    Hallo,
    wie kann ich die Bildgroesse (Speicherbedarf) eines JPG-Bildes ermitteln, wenn es als BMP-Bild gespeichert werden würde?
    Anzeigen oder umwandeln will ich das Bild nicht.
    Als "Greenhorn" habe ich da keine Idee.

    Danke

    Ralf

  • #2
    <font face="Arial">
    Hi,<br>
    <br>
    Bpp&nbsp;=&nbsp;Farbtiefe&nbsp;(24&nbsp;Bit&nbsp;o der&nbsp;so)<br>
    <br>
    bmpSize&nbsp;:=&nbsp;sizeof(TBitmapFileHeader)&nbs p;+<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;sizeof(TBitmapInfoHeader)&nbsp;+<b r>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n bsp;&nbsp;&nbsp;SizeX&nbsp;*&nbsp;SizeY&nbsp;*&nbs p;((Bpp+1)&nbsp;div&nbsp;8);<br>
    <br>
    Gru&szlig;<br>
    Harald&nbsp;Binder<br>
    </font&gt

    Comment

    Working...
    X