Image auto-resize in Guide Gui
2 次查看(过去 30 天)
显示 更早的评论
Hello,
I have been trying to create an application with GUIDE that has a single axes. So far, I haven't programmed the axes to have units that will work well on multiple systems (either with 'units' of character or pixels). Since the image being read is very large, Matlab auto-resizes the image to something like 17% maintaining the aspect ratio. It looks like this depends on the limiting dimension (y-direction) of the GUI axes. When the image is read, the x-dimension is much smaller than the original axes so it appears as though the axes has shrunk as well (i.e. the tick marks and axes labels adjust to the smaller image.
My question is why then do the 'Position' and 'OuterPosition' properties of the axes remain the same, even after opening and reading the image as a 'Child' object of the axes? How do I determine the 'apparent' resized axes properties, excluding the 'TightInset', if they don't actually change?
I have tried calling the axes and getting it's current properties after multiple callback functions change the image display in the 'Parent' axes. The reason I would like to know the 'apparent' position and outerposition values is to adjust the outerposition and tightinset properites relative to a static position property based on pixel units within GUIDE.
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!