Select to view content in your preferred language

Move / Resize / Turn inserted graphic on a GraphicLayer

590
1
01-21-2013 03:33 AM
VictorRodriguez
New Contributor
Hi everyone,

I'm inserting images in a GraphicLayer in a map. My goal is moving, resizing and turning the already inserted images if a checkbox is checked and an image is clicked.

Can anybody help me, please?


private void ImageslayerMouseLeftButtonUp(object sender, GraphicMouseButtonEventArgs e)
{
    try
    {
          var layer = Map.Layers[LayerIdentifiers.ImagesGraphicsLayer] as GraphicsLayer;

          if ((e.Graphic == null) || (layer == null))
                return;
                
          if (_resizeImage)
          {
                // Here I need to show the Edit Vertices / Move Box on the clicked image. (e.Graphic)
           }
                
      }
      catch (Exception ex)
      {
            UnhandledExceptionHandler.ShowFriendlyMessage(ex);
      }
}


Thanks in advance and forgive my poor English.
0 Kudos
1 Reply
DominiqueBroux
Esri Frequent Contributor
Did you look at this sample?
http://www.arcgis.com/home/item.html...b64a2d421d5716
Live version: http://serverapps.esri.com/Silverlig.../GeoReference/

It allows you to calculate the parameters needed to correctly place an image, including rotation.

I am not sure it's exactly what you need, but it could give you ideas on how to develop what you are looking for.
0 Kudos