 | PdfiumFPDF_PageToDevice Method |
Convert the page coordinate of a point to screen coordinate
Namespace: Patagames.PdfAssembly: Patagames.Pdf (in Patagames.Pdf.dll) Version: 4.94.2704
Syntaxpublic 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
)
Public Shared Sub FPDF_PageToDevice (
page As IntPtr,
start_x As Integer,
start_y As Integer,
size_x As Integer,
size_y As Integer,
rotate As PageRotate,
page_x As Double,
page_y As Double,
<OutAttribute> ByRef device_x As Integer,
<OutAttribute> ByRef device_y As Integer
)
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,
[OutAttribute] int% device_x,
[OutAttribute] int% device_y
)
static member FPDF_PageToDevice :
page : IntPtr *
start_x : int *
start_y : int *
size_x : int *
size_y : int *
rotate : PageRotate *
page_x : float *
page_y : float *
device_x : int byref *
device_y : int byref -> unit
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,
/** @attribute OutAttribute */ /** @ref */int device_x,
/** @attribute OutAttribute */ /** @ref */int device_y
)
Patagames.Pdf.Pdfium.FPDF_PageToDevice = function(page, start_x, start_y, size_x, size_y, rotate, page_x, page_y, device_x, 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