0

I want to make a point and the point can move to the right or to the left. To make the point I can handle it , but I can already confused in the movement of the point.

This code for draw point

public void DrawPoint(ESRI.ArcGIS.Carto.IActiveView activeView, System.Int32 x, System.Int32 y)
 {
 if (activeView == null)
 {
 return;
 }
 ESRI.ArcGIS.Display.IScreenDisplay screenDisplay = activeView.ScreenDisplay;
 screenDisplay.StartDrawing(screenDisplay.hDC, (System.Int16)ESRI.ArcGIS.Display.esriScreenCache.esriNoScreenCache); 
 ESRI.ArcGIS.Display.ISimpleMarkerSymbol simpleMarkerSymbol = new ESRI.ArcGIS.Display.SimpleMarkerSymbol();
 ESRI.ArcGIS.Display.ISymbol symbol = simpleMarkerSymbol as ESRI.ArcGIS.Display.ISymbol; 
 screenDisplay.SetSymbol(symbol);
 ESRI.ArcGIS.Display.IDisplayTransformation displayTransformation = screenDisplay.DisplayTransformation;
 ESRI.ArcGIS.Geometry.IPoint point = displayTransformation.ToMapPoint(x, y);
 screenDisplay.DrawPoint(point); 
 screenDisplay.FinishDrawing();
 }
Vince
20.5k16 gold badges49 silver badges65 bronze badges
asked Feb 3, 2017 at 2:57

1 Answer 1

0

It is not entirely clear what you want to achieve and your code is about drawing a point as a graphic on the screen. You can manipulate geometries, including points, with the ITransform2D interface. One of the methods is Move.

answered Feb 8, 2017 at 22:53

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.