将地图坐标(x,y)转换为以MapControls左上角为原点,以像素为基本单位的屏幕坐标方法。
IPoint pt = new PointClass();
pt.X = x;//x为地图x坐标
pt.Y = y;//y为地图y坐标
int forx = 0;
int fory = 0;
ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = _hook.AxMapControl.ActiveView.ScreenDisplay;
ESRI.ArcGIS.Display.IDisplayTransformation displayTransformation = screenDisplay.DisplayTransformation;
displayTransformation.FromMapPoint(pt, out forx, out fory);//输出的forx,fory为屏幕坐标