Click or drag to resize

PDFViewCtrlGetDeviceTransform Method (Int32)

Gets device transformation matrix from current page

Namespace:  pdftron.PDF
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public Matrix2D GetDeviceTransform(
	int page_num
)

Parameters

page_num
Type: SystemInt32
same as for PDFViewCtrl.Conv???() methods.

Return Value

Type: Matrix2D
the device transformation matrix. The device transformation matrix maps the page coordinate system to screen (or device) coordinate system.
Remarks
to obtain a transformation matrix that maps screen coordinates to page coordinates, you can invert the device matrix.
Examples
Common::Matrix2D scr2page(pdfviewctrl.GetDeviceTransform()); scr2page.Inverse();
See Also