PDFViewCtrlGetDeviceTransform Method |
Gets device transformation matrix from current page
Namespace:
pdftron.PDF
Assembly:
pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax public Matrix2D GetDeviceTransform()
Public Function GetDeviceTransform As Matrix2D
public:
virtual Matrix2D^ GetDeviceTransform() sealed
function GetDeviceTransform();
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