PDFium Delphi Component Docs

PointsToInches function

Component: TPdf  ·  Unit: PDFium
Konverterar PDF-punkter till tum

Syntax

function PointsToInches(Points: Double): Double;

Description

Statisk hjälpreda som konverterar ett mätvärde mellan pixel- / punkt- / tumenheter. PDF-koordinater uttrycks i punkter (1 pt = 1/72 tum)

Konverterar PDF-punkter till tum. Konverteringsformeln är value / 72

Dessa hjälpredor är klassfunktioner; du kan anropa dem utan att instansiera TPdf (t.ex. TPdf.PointsToInches(96))

Remarks

Example

var
  Margin: Double;
begin
  Margin := TPdf.PointsToInches(300);
  Memo1.Lines.Add(Format('PointsToInches(300) = %.4f', [Margin]));
end;

See Also

PixelsToInches, PixelsToPoints, PointsToPixels