AddPageGeoViewport
頁面屬性、測量和座標單位
描述
依 ISO 32000-2 §12.9 在所選頁面附加地理量測視埠(/VP),帶 /Subtype /GEO 量測字典、/GCS 座標系統與四角控制點(/LPTS 與 /GPTS)
語法
Delphi
Function AddPageGeoViewport(Left, Bottom, Right, Top: Double; EPSG: Integer; LatMin, LonMin, LatMax, LonMax: Double; Const Name: WideString): Integer;ActiveX
Function PDFlib::AddPageGeoViewport(Left As Double, Bottom As Double, Right As Double, Top As Double, EPSG As Long, LatMin As Double, LonMin As Double, LatMax As Double, LonMax As Double, Name As String) As LongDLL
int DLAddPageGeoViewport(int InstanceID, double Left, double Bottom, double Right, double Top, int EPSG, double LatMin, double LonMin, double LatMax, double LonMax, const wchar_t* Name);
int DLAddPageGeoViewportA(int InstanceID, double Left, double Bottom, double Right, double Top, int EPSG, double LatMin, double LonMin, double LatMax, double LonMax, const char* Name);參數
| Left | 視埠包圍盒的頁面左側座標 |
|---|---|
| Bottom | 視埠包圍盒的頁面底部座標 |
| Right | 視埠包圍盒的頁面右側座標 |
| Top | 視埠包圍盒的頁面頂部座標 |
| EPSG | 座標系統 EPSG 代碼(例如 WGS 84 為 4326,Web Mercator 為 3857);代碼 4000 到 4999 寫為地理座標系統(/GEOGCS),其餘代碼寫為投影座標系統(/PROJCS),僅透過 /EPSG 識別 |
| LatMin | 地理包圍盒的最小緯度(度) |
| LonMin | 地理包圍盒的最小經度(度) |
| LatMax | 地理包圍盒的最大緯度(度) |
| LonMax | 地理包圍盒的最大經度(度) |
| Name | 選配的視埠名稱,寫入 /Name |
傳回值
地理視埠成功附加到所選頁面時為 1,失敗時為 0
另請參閱
PagePointToLatLon, LatLonToPagePoint, AddPageMeasureViewport