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
)
Public Function GetDeviceTransform (
page_num As Integer
) As Matrix2D
public:
virtual Matrix2D^ GetDeviceTransform(
[InAttribute] int page_num
) sealed
function GetDeviceTransform(page_num);
Parameters
- page_num
- Type: SystemInt32
same as for PDFViewCtrl.Conv???() methods.
Return Value
Type:
Matrix2Dthe 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