QQ交流群:607330463 GIS开发技术最强交流群 未经允许 禁止转载 可以参考
///导出成图
public static void ExportImage2(IActiveView pActiveView, string outPath, int pdi)
{
try
{
//参数检查
if (pActiveView == null)
{
throw new Exception("输入参数错误,无法生成图片文件!");
}
//根据给定的文件扩展名,来决定生成不同类型的对象
ESRI.ArcGIS.Output.IExport export = null;
if (outPath.EndsWith(".pdf"))
{
export = new ESRI.ArcGIS.Output.ExportPDFClass();
}
else if (outPath.EndsWith(".tiff"))
{
export = new ESRI.ArcGIS.Output.ExportTIFFClass();
}
else if (outPath.EndsWith("