PDFiumPas 文件

PointsToInches 函式

元件: TPdf  ·  單元: PDFium
將 PDF points 轉換為英吋

Syntax

function PointsToInches(Points: Double): Double;

Description

靜態輔助函式,可在像素 / 點 / 英吋單位之間轉換測量值。PDF 座標以點表示(1 pt = 1/72 英吋)

將 PDF 點轉換為英吋。轉換公式為 value / 72

這些輔助函式為類別函式;您可以在不具現化 TPdf 的情況下呼叫它們(例如 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