PDFium Component Docs

PointsToPixels function

Component: TPdf  ·  Unit: PDFium
Pretvori PDF točke u piksele pri zadanom DPI-ju

Syntax

function PointsToPixels(Points: Double; PixelsPerInch: Double): Double;

Description

Statički pomoćni alat koji pretvara mjernu vrijednost između piksel / točka / inč jedinica. PDF koordinate su izražene u točkama (1 pt = 1/72 inča).

Convert PDF points to pixels at the given DPI. The conversion formula is Round(value * DPI / 72).

These helpers are class functions; you can call them without instantiating TPdf (e.g. TPdf.PointsToPixels(96)).

Remarks

Example

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

See Also

PixelsToInches, PixelsToPoints, PointsToInches