Einzelnen Beitrag anzeigen

HPW

Registriert seit: 28. Feb 2003
160 Beiträge
 
Delphi 7 Professional
 
#5

Re: Byte-Array to Double convertieren

  Alt 25. Jun 2004, 18:21
Danke für die Tips.
So ganz richtig bin ich damit noch nicht weiter gekommen.

Also ich möchte ein binäres Dateiformat lesen.
Aus der Spezifikation des Headers:
Code:
 Aspect ratio  4 Bytes Aspect ratio (horizontal size / vertical size in
                         inches) of the graphics area, scaled by
                         10,000,000. This value is always written with
                         the least significant byte first.

    Header : packed record
     ....
     ....
     Width,
     Height : Word;
     Aspect_Ratio : array[0..3] of byte;


Die Werte zu Integern konvertiert:
Width = 970
Height = 514
Byte         0    1   2   3
Aspect_Ratio: 184  56  32  1
Hans-Peter
  Mit Zitat antworten Zitat