luyungis
路人甲
路人甲
  • 注册日期2007-04-29
  • 发帖数32
  • QQ
  • 铜币263枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:1482回复:0

比例尺的算法????

楼主#
更多 发布于:2007-05-24 16:22
<P>这是VB的比例尺求解法,C#怎么写啊???? </P>
<P> private void  refreshscale()<BR>  {<BR>               axScaleBar1.MapExtent.MaxX = axMap1.Extent.Right;</P>
<P>               axScaleBar1.MapExtent.MinX = axMap1.Extent.Left;</P>
<P>               axScaleBar1.MapExtent.MaxY = axMap1.Extent.Bottom;</P>
<P>               axScaleBar1.MapExtent.MinY = axMap1.Extent.Top;</P>
<P>               axScaleBar1.PageExtent.MinX = axMap1.Left / Screen.<BR> <BR>               axScaleBar1.PageExtent.MinY = axMap1.Top / Screen.TwipsPerPixelY;</P>
<P>               axScaleBar1.PageExtent.MaxX = (axMap1.Left + axMap1.Width) / Screen.TwipsPerPixelX;</P>
<P>               axScaleBar1.PageExtent.MaxY = (axMap1.Top + axMap1.Height) / Screen.TwipsPerPixelY;<BR>                 <BR>                axScaleBar1.Refresh();</P>
<P>  }<BR></P>
喜欢0 评分0
游客

返回顶部