码迷,mamicode.com
首页 > 其他好文 > 详细

Envelope 转为Polygon

时间:2014-09-26 19:23:38      阅读:619      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   sp   div   cti   on   c   amp   

                        IEnvelopePtr ipEnv ;
                        hr = m_ipMapCtrl ->TrackRectangle(& ipEnv);
                         IPointPtr ipPointUL ;
                         IPointPtr ipPointUR ;
                         IPointPtr ipPointLL ;
                         IPointPtr ipPointLR ;
                         ipEnv->get_UpperLeft (&ipPointUL);
                         ipEnv->get_UpperRight (&ipPointUR);
                         ipEnv->get_LowerLeft (&ipPointLL);
                         ipEnv->get_LowerRight (&ipPointLR);
                         IPointCollectionPtr ipPointCollection (CLSID_Polygon);
                         ipPointCollection->AddPoint (ipPointUL);
                         ipPointCollection->AddPoint (ipPointLL);
                         ipPointCollection->AddPoint (ipPointLR);
                         ipPointCollection->AddPoint (ipPointUR);
                         ipGeo=ipPointCollection ;

Envelope 转为Polygon

标签:style   color   io   sp   div   cti   on   c   amp   

原文地址:http://www.cnblogs.com/bibo/p/3994980.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!