阅读:1480回复:0
比例尺的算法????
<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> |
|