Click or drag to resize

PdfPageDeviceToPage Method (Int32, Int32, Int32, Int32, PageRotate, Int32, Int32, Double, Double)

Convert the screen coordinate of a point to page coordinate.

Namespace:  Patagames.Pdf.Net
Assemblies:   Patagames.Pdf.Xamarin.iOS (in Patagames.Pdf.Xamarin.iOS.dll) Version: 4.84.2704
  Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.84.2704
Syntax
public void DeviceToPage(
	int x,
	int y,
	int width,
	int height,
	PageRotate rotate,
	int deviceX,
	int deviceY,
	out double pageX,
	out double pageY
)

Parameters

x
Type: SystemInt32
Left pixel position of the display area in the device coordinate
y
Type: SystemInt32
Top pixel position of the display area in the device coordinate
width
Type: SystemInt32
Horizontal size (in pixels) for displaying the page
height
Type: SystemInt32
Vertical size (in pixels) for displaying the page
rotate
Type: Patagames.Pdf.EnumsPageRotate
Page orientation: 0 (normal), 1 (rotated 90 degrees clockwise),2 (rotated 180 degrees), 3 (rotated 90 degrees counter-clockwise).
deviceX
Type: SystemInt32
X value in device coordinate, for the point to be converted
deviceY
Type: SystemInt32
Y value in device coordinate, for the point to be converted
pageX
Type: SystemDouble
The X value of the point in page coordinate
pageY
Type: SystemDouble
The Y value of the point in page coordinate
Remarks
The page coordinate system has its origin at left-bottom corner of the page, with X axis goes along the bottom side to the right, and Y axis goes along the left side upward. NOTE: this coordinate system can be altered when you zoom, scroll, or rotate a page, however, a point on the page should always have the same coordinate values in the page coordinate system. The device coordinate system is device dependant. For screen device, its origin is at left-top corner of the window. However this origin can be altered by Windows coordinate transformation utilities. You must make sure the x, y, width, height and rotate parameters have exactlysame values as you used in Render Overload methods call.
See Also