PagePointToLatLon

页面属性、测量和坐标单位

描述

用所选页面地理空间视口上的最小二乘仿射控制点求解器,把页面坐标对 (PageX, PageY) 转换为以度表示的地理 (Latitude, Longitude)

语法

Delphi

Function PagePointToLatLon(PageX, PageY: Double; Out Latitude, Longitude: Double): Integer;

ActiveX

Function PDFlib::PagePointToLatLon(PageX As Double, PageY As Double, ByRef Latitude As Double, ByRef Longitude As Double) As Long

DLL

int DLPagePointToLatLon(int InstanceID, double PageX, double PageY, double Out Latitude, double Longitude);

参数

PageX水平页面坐标
PageY垂直页面坐标
Latitude接收计算出的纬度(度)
Longitude接收计算出的经度(度)

返回值

找到地理空间视口并完成坐标变换返回 1,失败返回 0

另请参阅

AddPageGeoViewport, LatLonToPagePoint