Click or drag to resize

PdfPageExtensionPageToDeviceEx Method

Convert the page coordinate of a point to screen coordinate

Namespace: Patagames.Pdf.Net
Assembly: Patagames.Pdf.Gdi (in Patagames.Pdf.Gdi.dll) Version: 5.1.3
Syntax
public static Point PageToDeviceEx(
	this PdfPage page,
	int x,
	int y,
	int width,
	int height,
	PageRotate rotate,
	float pageX,
	float 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

Point
Point 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