Allowing zoom feature along with mouse click actions in GUIDE.
4 次查看(过去 30 天)
显示 更早的评论
I am developing application using matlab GUIDE. This application allows the user to add/remove annotations on image using mouse click action function. Now there is a need to allow zoom feature so that user can zoom in the image and perform the mouse actions.
I am able to use zoom and pan actions using mouse to reach the needed region. Then disabling them, for mouse actions. When I click on the image, mouse based action is succesfully done, but when I want to display the new image which has one new mark, it goes back to original position. I would need to programatically zoom and pan to the position the mouse had reached before. I am stumped on how to do it.
Changing the YLIM or XLIM is no go, it seems. I would need to find the zoom factor, then zoom it. Then pan the image to the needed region.
How to find the zoom factor, and pan the image programatically.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Exploration 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!