Forum: Object-Pascal / Delphi-Language
Delphi
by HPW,
25. Jun 2004
Nochmal Danke an Alle.
Das mit dem Double war natürlich ein grosser Irrtum meinerseits.
Dies hat nun funktioniert!
arfactorInt : Integer;
arFactorInt := PInteger(@Header.Aspect_Ratio)^;
Forum: Object-Pascal / Delphi-Language
Delphi
by HPW,
25. Jun 2004
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:
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
...
Forum: Object-Pascal / Delphi-Language
Delphi
by HPW,
25. Jun 2004
Ich lese aus einer Datei dies ein:
Aspect_Ratio : array of byte;
und möchte die 4 Byte in diese Variable zuweisen:
arfactor : Double;
Tips dazu?