Click or drag to resize

PdfPageExtensionDeviceToPageEx Method

Convert the screen coordinate of a point to page coordinate.

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntax
public static PointF DeviceToPageEx(
	this PdfPage page,
	int x,
	int y,
	int width,
	int height,
	PageRotate rotate,
	int deviceX,
	int deviceY
)

Parameters

page  PdfPage
The page to calculate.
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

Return Value

PointF
PointF structure that represents the point in page coordinate

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type PdfPage. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Remarks
See Also