 | PdfPageExtensionPageToDeviceEx Method |
Convert the page coordinate of a point to screen coordinate
Namespace: Patagames.Pdf.NetAssembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntaxpublic static Point PageToDeviceEx(
this PdfPage page,
int x,
int y,
int width,
int height,
PageRotate rotate,
float pageX,
float pageY
)
<ExtensionAttribute>
Public Shared Function PageToDeviceEx (
page As PdfPage,
x As Integer,
y As Integer,
width As Integer,
height As Integer,
rotate As PageRotate,
pageX As Single,
pageY As Single
) As Point
public:
[ExtensionAttribute]
static Point PageToDeviceEx(
PdfPage^ page,
int x,
int y,
int width,
int height,
PageRotate rotate,
float pageX,
float pageY
)
[<ExtensionAttribute>]
static member PageToDeviceEx :
page : PdfPage *
x : int *
y : int *
width : int *
height : int *
rotate : PageRotate *
pageX : float32 *
pageY : float32 -> Point /** @attribute ExtensionAttribute */
public static Point PageToDeviceEx(
PdfPage page,
int x,
int y,
int width,
int height,
PageRotate rotate,
float pageX,
float pageY
)
Patagames.Pdf.Net.PdfPageExtension.PageToDeviceEx = function(page, x, y, width, height, rotate, pageX, pageY);
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).
- pageX Single
- X value in page coordinate, for the point to be converted
- pageY Single
- Y value in page coordinate, for the point to be converted
Return Value
PointPoint structure that represents the point in device 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