 | PdfPageDeviceToPage Method (Int32, Int32, Int32, Int32, PageRotate, Int32, Int32) |
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
Syntaxpublic FS_POINTF DeviceToPage(
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY
)
Public Function DeviceToPage (
x As Integer,
y As Integer,
width As Integer,
height As Integer,
rotate As PageRotate,
deviceX As Integer,
deviceY As Integer
) As FS_POINTF
public:
FS_POINTF DeviceToPage(
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY
)
member DeviceToPage :
x : int *
y : int *
width : int *
height : int *
rotate : PageRotate *
deviceX : int *
deviceY : int -> FS_POINTF
public FS_POINTF DeviceToPage(
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY
)
function DeviceToPage(x, y, width, height, rotate, deviceX, deviceY);
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
Return Value
Type:
FS_POINTFFS_POINTF structure that represents the point in page coordinate
RemarksThe 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