C# arcengine,取得ArcMap文档缩略图

 private Image GetThumbnail(IMapDocument pMapDoc)
        {
            return System.Drawing.Image.FromHbitmap((IntPtr)(pMapDoc.Thumbnail.Handle));
        }

        private void button1_Click(object sender, EventArgs e)
        {
            IMapDocument pMapDoc = new MapDocumentClass();
            pMapDoc.Open(@"D:\基本农田空间布局图.mxd", "");
            GetThumbnail(pMapDoc).Save(@"c:\1.jpg");

        }

posted @ 2010-02-25 17:03  闫磊博客  阅读(419)  评论(0编辑  收藏  举报