function PointsToPixels(Points: Double; PixelsPerInch: Double): Double;
pixel / point / inch 단위 사이의 측정값을 변환하는 정적 헬퍼입니다. PDF 좌표는 point로 표현됩니다(1 pt = 1/72 inch)
주어진 DPI에서 PDF point를 픽셀로 변환합니다. 변환 공식은 Points * PixelsPerInch / 72입니다
PDFium 유닛의 유닛 수준 헬퍼 함수이므로 TPdf를 인스턴스화하지 않고도 호출할 수 있습니다(예: PointsToPixels(72, 96))
PixelsPerInch로 넘기세요*To* 함수로 제공됩니다
var
Margin: Double;
begin
Margin := PointsToPixels(72, 96);
Memo1.Lines.Add(Format('PointsToPixels(72, 96) = %.4f', [Margin]));
end;