wjckaxi
路人甲
路人甲
  • 注册日期2004-04-13
  • 发帖数144
  • QQ
  • 铜币149枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1297回复:0

关于offset c #下的实现!

楼主#
更多 发布于:2005-03-08 16:30
<P>为什么在c#下面 offset 功能就消失了??? </P>
<P>MapObjects2.Rectangle  rect = new MapObjects2.RectangleClass ();
      double  rx = ((MapObjects2.Point )drr["shape"]).X ;
      double  ry = ((MapObjects2.Point )drr["shape"]).Y ;
    
      rect = axMap.Extent ;
      MapObjects2.Point  cpt = rect.Center;</P>
<P>      double dx = rx-cpt.X ;
      double dy = ry-cpt.Y;</P>
<P>      rect.Offset (dx,dy);   </P>
<P>      axMap.Extent = rect.Extent  ;

      axMap.Update ();</P>

<P>哪里出错了啊?? 求救了~~`</P><img src="images/post/smile/dvbbs/em02.gif" /><img src="images/post/smile/dvbbs/em02.gif" />
喜欢0 评分0
菜虫 欢迎光临Blog http://blog.sina.com.cn/wjckaxi
游客

返回顶部