Click or drag to resize

PdfiumFPDF_PageToDevice Method

Convert the page coordinate of a point to screen coordinate

Namespace: Patagames.Pdf
Assembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntax
public static void FPDF_PageToDevice(
	IntPtr page,
	int start_x,
	int start_y,
	int size_x,
	int size_y,
	PageRotate rotate,
	double page_x,
	double page_y,
	out int device_x,
	out int device_y
)

Parameters

page  IntPtr
Handle to the page. Returned by FPDF_LoadPage(IntPtr, Int32) function.
start_x  Int32
Left pixel position of the display area in the device coordinate
start_y  Int32
Top pixel position of the display area in the device coordinate
size_x  Int32
Horizontal size (in pixels) for displaying the page
size_y  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).
page_x  Double
X value in page coordinate, for the point to be converted
page_y  Double
Y value in page coordinate, for the point to be converted
device_x  Int32
A pointer to an integer value receiving the result X value in device coordinate
device_y  Int32
A pointer to an integer value receiving the result Y value in device coordinate
Remarks
See Also