title: Rectangle coordinates drawn on Image in Xamarin Forms
body: <p>I am trying to get following usecase implemented in Xamarin forms
  (Using with SFImageEditor from syncfusion but can try if other options)</p>
  <ol>
  <li><p>Display an image in editor.</p>
  </li>
  <li><p>Display an initial rectangle.</p>
  </li>
  <li><p>User resizes the rectangle to best fit and clicks &quot;go&quot;.</p>
  </li>
  <li><p>Need to Capture the coordinates of this rectangle in reference to the image.</p>
  </li>
  <li><p>Send the image and rectangle coordinates for further processing.</p>
  </li>
  </ol>
  <p>Can someone pls provide guidance on step 4 for identifying the coordinates of the rectangle.
  (X Y height width) or (coordinates of 4 corners). Either format is fine.
  Appreciate your help.</p>
  <p>code to set SFImageEditor in Xamarin.Forms with Syncfusion.</p>
  <p>Xaml code</p>
  <pre><code>&lt;imageeditor:SfImageEditor   x:Name=&quot;present_image&quot;     &gt;
      &lt;imageeditor:SfImageEditor.ToolbarSettings&gt;
         &lt;imageeditor:ToolbarSettings IsVisible=&quot;True&quot;   /&gt;
      &lt;/imageeditor:SfImageEditor.ToolbarSettings&gt;
  &lt;/imageeditor:SfImageEditor&gt;
  </code></pre>
  <p>code behind</p>
  <pre><code>public ImgEditPage( )
  {
      InitializeComponent();          
      var origImage = ImageSource.FromUri(
              new Uri(&quot;https://xxx.xx/xxxxxx.jpg&quot;)); ;
      present_image.Source = origImage; 
  }
  </code></pre>
  <p>This will open up the image in an editor window, The editor allows to draw a rectangle object.
  User can click the button to draw rectangle I want to get the coordinates of the rectangle drawn by user.</p>