Select by default the Pen

Is there away to Select by Default the Pen.
We tried the following way: imageEditor.AddShape(ShapeType.Path);
But the problem with this code is that the image gets already changed (imageEditor.IsImageEdited == true) and a new file will be created even nothing has changed.
Best regards,

3 Replies

AK Ashwin Kumaravel Syncfusion Team May 30, 2018 06:24 PM UTC

Hi Florian, 


Thanks for using Syncfusion products, 


Query 1-IsImageEdited is set to true when AddShape method is called

 

We have validate your query, as per the behaviour of image editor control once we have called AddShape() method ,IsImageEdited property will set to true, this is the default behaviour of the control  


Query 2- A new file will be created even nothing has changed. 


Can you please more specific whether a new file is created in local storage of your device without performing any operations? or can you please provide your replication steps or reproducing video so that it will be very useful for us to proceed further. 

 
Regards, 

Ashwin 

 



UN Unknown June 4, 2018 09:18 AM UTC

Hello,
The question is there an other way to preselect the Pen? This would be more user friendly.

I tried the addShape()-Way and it is not satisfing, because I can not detect anymore, if the user made a real change, or it is only one change from our line of code.

Is there a workaround for this i haven't found yet? E.g. Number of changes? Call Redo? something else?


JK Jeya Kasipandi Syncfusion Team June 5, 2018 11:50 AM UTC

Hi Florian,

We have validated your query, and we are considering this as a bug in our control. The behavior of Add Shape method is to add the shapes like rectangle, circle and arrow along with enabling the path shape(pen), the AddShape adds the shapes (like rectangle, circle etc.)immediately when called and thus the IsImageEdited is set to true. But considering the path shape,the image is not edited until you draw something so the IsImageEdited must not be true. So we have logged an issue report for this, also we have created a separate support incident under your account to keep track of this issue.

Please log on to our support website to check for further updates.

https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents/

Regards,
Jeya k

Loader.
Up arrow icon