We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use this code,but it's not perfect solution
pActiveView.Extent = (pRasterLayer as IGeoDataset).Extent; IntPtr pHandle = new IntPtr(pActiveView.ScreenDisplay.hWnd); AxMapControl axMapControl1 = Form.FromHandle(pHandle) as AxMapControl; int controlWidth = axMapControl1.Width; double controlW = Convert.ToDouble(controlWidth); IMap pMap = pActiveView.FocusMap; pMap.MapScale = (controlW / pRasterLayer.ColumnCount * pMap.MapScale); MessageBox.Show(pMap.MapScale.ToString()); pActiveView.PartialRefresh(esriViewDrawPhase.esriViewGeography, null, null);
ArcGIS 10.6.1+C#
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I use this code,but it's not perfect solution
ArcGIS 10.6.1+C#
The text was updated successfully, but these errors were encountered: