Determine Rectangle Of Image Displayed

I'm adding shapes programmatically- they get added on a back end and then .LoadEdits() used to load in the serialized shape.

I'd like to figure out what portion of the image is displayed on the screen right now- for example, if the image is 100x100 and they are zoomed in so that only the bottom right quadrant is showing on screen, somehow I'd like to know that top = 50, left = 50, right=100, bottom=100.  I'd like to know this so I can add the new shape within the visible area.

I had thought the .ActualImageRenderedBounds would show that but the numbers don't make any sense to me.

Appreciate any help you can provide!


3 Replies

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

Currently, SfImageEditor control doesn’t have the support to get the visual bounds of the zoomed image, and the ActualImageRenderedBounds holds the rendered bounds of the loaded image, and it will be updated only when performing the crop or rotate operations. 



JC Jonah Coleman March 17, 2022 12:59 AM UTC

Thank you, feature request created here: 



VR Vignesh Ramesh Syncfusion Team March 17, 2022 08:13 AM UTC

We will check and update the details in the corresponding feedback comments. Please follow up on the feedback for further updates. 

Please find the feedback link below for your reference. 


Loader.
Up arrow icon