PDFium Delphi Component Docs

PixelsToInches 함수

컴포넌트: TPdf  ·  유닛: PDFium
주어진 DPI에서 픽셀 측정값을 inch로 변환합니다

Syntax

function PixelsToInches(Pixels, PixelsPerInch: Double): Double;

Description

pixel / point / inch 단위 사이의 측정값을 변환하는 정적 헬퍼입니다. PDF 좌표는 point로 표현됩니다(1 pt = 1/72 inch)

주어진 DPI에서 픽셀 측정값을 inch로 변환합니다. 변환 공식은 value / DPI입니다

이 헬퍼들은 클래스 함수이므로 TPdf를 인스턴스화하지 않고도 호출할 수 있습니다(예: TPdf.PixelsToInches(96))

Remarks

Example

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

See Also

PixelsToPoints, PointsToInches, PointsToPixels