Closed osw-mj closed 3 months ago
Hey @usuiat How are you, Sorry but can you look into my question, Let me know what you think about this. Or do you have any confusion? Response this comments if you read it.
@osw-mj
Sorry for the late reply.
ZoomState
exposes offsetX
, offsetY
and scale
.
Using these properties, we may be able to guess which part of the image is being displayed.
Please let me know if there are any other properties you need.
Yes same i want to know the part displayed and want to convert that part into the image file. Okay i think you know how it's possible can you make it easier for me means any function
The figure shows the scale
, offsetX
, and offsetY
when the blue image size is zoomed to orange.
The visible area then becomes a green rectangle, which can be represented by the equation in the figure.
However, this is the case when the aspect ratio of the image and the display area match. If the aspect ratios are different, it becomes more complicated. Probably, the required rectangular area will vary from application to application.
Okay I'm closing this issue for now. Thank you.
Here is the explanation with example: