App designer - resizing axes to image size
53 views (last 30 days)
Teshan Rezel on 18 Mar 2021
I'm displaying a JPEG image in my app and currently, the axes stretch the image when the window is maximised. Is there a way to make the axes the same size as the image, so that it doesn't stretch the image to maximise the window?
Rashed Mohammed on 22 Mar 2021
Since you have mentioned axes, I'm assuming you are using uiaxes to display the image. However, MATLAB has uiimage function for displaying images inside applications. This function also has the Name-Value pair ScaleMethod giving users the control over how the image must be displayed when the component area changes.
Hope this helps