Enumerate all items inside the collage ?

I am trying to build a review app, in which I have a button, which when I click - I need to enumerate all items inside the result collage inside SfImageEditor, and get their width and heights.

- How to do that ?


4 Replies

VR Vignesh Ramesh Syncfusion Team January 17, 2022 04:22 PM UTC

Hi Molier de Ritoi, 

We have checked your query and would like to inform you that SfImageEditor has support to get the settings of the added items through the Selected/UnSelected events only and it does not have a List/Collection to get the added items along with its settings. 

Regards, 
Vignesh Ramesh. 



JC Jonah Coleman March 9, 2022 02:12 AM UTC

You can call .LoadEdits() and de-serialize the JSON returned.  The classes are not provided by SyncFusion but they aren't very hard to figure out.



JC Jonah Coleman March 9, 2022 02:36 AM UTC

Of course (as you know from other posts) Custom Views won't be in it.



ET Eswaran Thirugnanasambandam Syncfusion Team March 9, 2022 04:42 PM UTC

Hi Molier de Ritoi, 
 
As Jonah Coleman said, we can get the Shapes collection added in the ImageEditor from the JSON stream which is returned from the SaveEdits() methods. But as of now, it will not contain the CustomView’s information. 
 
Please find the below user guide documentation links for more information about serialization support in ImageEditor. 
 
Regards, 
Eswaran 


Loader.
Up arrow icon