 | PdfPageExtensionDeviceToPageEx Method |
Convert the screen coordinate of a point to page coordinate.
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntaxpublic static PointF DeviceToPageEx(
this PdfPage page,
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY
)
<ExtensionAttribute>
Public Shared Function DeviceToPageEx (
page As PdfPage,
x As Integer,
y As Integer,
width As Integer,
height As Integer,
rotate As PageRotate,
deviceX As Integer,
deviceY As Integer
) As PointF
public:
[ExtensionAttribute]
static PointF DeviceToPageEx(
PdfPage^ page,
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY
)
[<ExtensionAttribute>]
static member DeviceToPageEx :
page : PdfPage *
x : int *
y : int *
width : int *
height : int *
rotate : PageRotate *
deviceX : int *
deviceY : int -> PointF /** @attribute ExtensionAttribute */
public static PointF DeviceToPageEx(
PdfPage page,
int x,
int y,
int width,
int height,
PageRotate rotate,
int deviceX,
int deviceY
)
Patagames.Pdf.Net.PdfPageExtension.DeviceToPageEx = function(page, x, y, width, height, rotate, deviceX, 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
PointFPointF 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