PDFium Delphi Component Docs

PointsToInches 函数

单元: PDFium
将 PDF 点转换为英寸

语法

function PointsToInches(Points: Double): Double;

说明

在像素 / 点 / 英寸单位之间转换测量值的静态帮助程序。PDF 坐标以点表示(1 pt = 1/72 英寸)

将 PDF 点转换为英寸。转换公式为 value / 72

PDFium 单元中的单元级辅助函数;无需实例化 TPdf 即可调用(例如 PointsToInches(72))

备注

示例

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

参见

PixelsToInches, PixelsToPoints, PointsToPixels