More informations about the shapes possible, or at least tap info?

Hi,

is there a possibility to get more informations about the currently selected shape, like X/Y and  W/H?

Background: my customer takes a picture of something and has to measure things like contained area, distance, angle and other stuff. 
And as if that is not enough, there has to be the possibility to add annotations, which should be the shape/text part.

I write my own derivation of the Android.Image with CustomRenderer, which allows me to capture the coordinates the user tapped (touch down, touch up), and i wonder if it is possible to get the infos from the SfImageEditor too.

In extension, how do i iterate through the painted shapes programmatically, and - when using the ItemSelected event, i may get the Settings (mostly PenSettings) for the selected element, but not the item itself. Is there at least a way to access the select shape?

Edit: maybe, changing the AddShape-Method to get back the added Shape is a good idea?

3 Replies

MV Mohana V Syncfusion Team March 5, 2018 11:59 AM UTC

Hi Paul,

Thanks for contacting syncfusion support.

Query: "Get information about the currently selected shape"

As per our current implementation, Image editor doesn't have support for getting information about selected shape. We have considered your requirement "Getting X and Y coordinates & width and height of selected shape" and we will include this in any of our upcoming volume releases.

Regards,
Mohana V



DV Daxa Varsani September 4, 2019 09:20 AM UTC

I want to have the same feature. Any update on this feature?


BK Bharathiraja K Syncfusion Team September 5, 2019 02:36 PM UTC

Hi Paul, 
 
We have support to getting the information about selected shapes from PenSettings by using ItemSelected event as shown below code snippet.  
  
[C#]: 
private void Editor_ItemSelected(object sender, ItemSelectedEventArgs args)        {
            if (args.Settings is PenSettings)
            {
                Rectangle bounds = (args.Settings as PenSettings).Bounds;
            }
        }
 
 
 
Please refer the below help document link for more details. 
 
Regards, 
Bharathi.  


Loader.
Up arrow icon