PDFium Delphi Component 文件

PointsToInches 函数

组件: TPdf  ·  单元: PDFium
将 PDF 点转换为英寸

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