PDFium Delphi Component Docs

PointsToPixels 함수

유닛: PDFium
주어진 DPI에서 PDF point를 픽셀로 변환합니다

구문

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))

참고 사항

예제

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

관련 항목

PixelsToInches, PixelsToPoints, PointsToInches