| PdfPageDeviceToPage(Int32, Int32, Int32, Int32, PageRotate, Int32, Int32, Double, Double) Method |
Convert the screen coordinate of a point to page coordinate.
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.89.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
)
Public Sub DeviceToPage (
x As Integer,
y As Integer,
width As Integer,
height As Integer,
rotate As PageRotate,
deviceX As Integer,
deviceY As Integer,
<OutAttribute> ByRef pageX As Double,
<OutAttribute> ByRef pageY As Double
)
public:
void DeviceToPage(
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY,
[OutAttribute] double% pageX,
[OutAttribute] double% pageY
)
member DeviceToPage :
x : int *
y : int *
width : int *
height : int *
rotate : PageRotate *
deviceX : int *
deviceY : int *
pageX : float byref *
pageY : float byref -> unit
public void DeviceToPage(
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY,
/** @attribute OutAttribute */ /** @ref */double pageX,
/** @attribute OutAttribute */ /** @ref */double pageY
)
function DeviceToPage(x, y, width, height, rotate, deviceX, deviceY, pageX, pageY);
Parameters
- x Int32
- Left pixel position of the display area in the device coordinate
- y Int32
- Top pixel position of the display area in the device coordinate
- width Int32
- Horizontal size (in pixels) for displaying the page
- height Int32
- Vertical size (in pixels) for displaying the page
- rotate PageRotate
- Page orientation: 0 (normal), 1 (rotated 90 degrees clockwise),2 (rotated 180 degrees), 3 (rotated 90 degrees counter-clockwise).
- deviceX Int32
- X value in device coordinate, for the point to be converted
- deviceY Int32
- Y value in device coordinate, for the point to be converted
- pageX Double
- The X value of the point in page coordinate
- pageY Double
- 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
{0} Overload methods call.
See Also