<< Click to Display Table of Contents >>
ExportToImage
將DataFrame中的圖層匯出為影像
語法:
ExportToImage (sgd,outimgpath,dataframe, resolution)
參數 |
說明 |
參數類型 |
sgd |
要匯出的地圖文件 |
MapDocument物件 |
outimgpath |
匯出影像檔的路徑 |
字串 |
dataframe |
數據框架類型,為下列任一種 PAGE_LAYOUT 圖層集 |
字串 |
resolution |
列印解析度 |
長整數 |
ExportToImage使用範例
import sgpy sgd = sgpy.mapping.MapDocument("current") sgpy.mapping.ExportToImage(sgd, r"D:\Project1.bmp", 'PAGE_LAYOUT',96) del sgd |
©2015 Supergeo Technologies Inc. All rights reserved.