Image auto-resize in Guide Gui

2 visualizzazioni (ultimi 30 giorni)
curoi
curoi il 17 Ott 2014
Modificato: curoi il 17 Ott 2014
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.

Risposte (0)

Categorie

Scopri di più su Migrate GUIDE Apps in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by