ImageEn, unit iexUserInteractions

TIEPdfViewer.PageToScr

TIEPdfViewer.PageToScr


Declaration

function PageToScr(PageX, PageY: Double): TPoint; overload;
function PageToScr(PageRect: TDRect): TRect; overload;


Description

Convert a position on the current page (in points) to a screen value (in pixels).

Note:
The specified page value is not checked to ensure it is a valid point within the page
The origin of PDF page points (i.e. 0,0) is the bottom-left


Example

// Convert a page point to a screen point
scrPt := ImageEnView1.PdfViewer.PageToScr( 100, 100 );


See Also

ScrToPage