ArcEngine代码 无MapControl控件自动缩略成当前范围并成图导出

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("

猜你喜欢

转载自blog.csdn.net/qq_30430463/article/details/112762921