Changing position and resizing image within Image Viewer (imtool)
I am working on an app that will open the Image Viewer app using imtool. I want the Image Viewer window to be in the top right of the screen, and larger than the default opening size, as well as have the image within the app displayed at the largerst possible magnification that shows the entire image.
I have figured out that I can do each of these steps individually, however, when I try to combine them it seem to be that I can only set the position and size of the Image Viewer after I have set the magnification – and the magnification does not seem to adapt to the new size of the window (and I cannot figure out how to code the magnification after the Image Viewer has been launched).
The code I am using is:
screensize = get(0, ‘ScreenSize’) ;
app.ImageAppOn = imtool(app.ImageCell{1}, ‘InitialMagnification’, ‘adaptive’) ;
%display the first image in the set ImageCell
set(app.ImageAppOn, ‘Position’, [650, 20, screensize(3)-650, screensize(4)-100])
%send the Image Viewer to the top right corner and resize to take up more screen
How can I accomplish both the larger window size and the larger magnification?
(I am using Matlab 2018b)
Thanks.I am working on an app that will open the Image Viewer app using imtool. I want the Image Viewer window to be in the top right of the screen, and larger than the default opening size, as well as have the image within the app displayed at the largerst possible magnification that shows the entire image.
I have figured out that I can do each of these steps individually, however, when I try to combine them it seem to be that I can only set the position and size of the Image Viewer after I have set the magnification – and the magnification does not seem to adapt to the new size of the window (and I cannot figure out how to code the magnification after the Image Viewer has been launched).
The code I am using is:
screensize = get(0, ‘ScreenSize’) ;
app.ImageAppOn = imtool(app.ImageCell{1}, ‘InitialMagnification’, ‘adaptive’) ;
%display the first image in the set ImageCell
set(app.ImageAppOn, ‘Position’, [650, 20, screensize(3)-650, screensize(4)-100])
%send the Image Viewer to the top right corner and resize to take up more screen
How can I accomplish both the larger window size and the larger magnification?
(I am using Matlab 2018b)
Thanks. I am working on an app that will open the Image Viewer app using imtool. I want the Image Viewer window to be in the top right of the screen, and larger than the default opening size, as well as have the image within the app displayed at the largerst possible magnification that shows the entire image.
I have figured out that I can do each of these steps individually, however, when I try to combine them it seem to be that I can only set the position and size of the Image Viewer after I have set the magnification – and the magnification does not seem to adapt to the new size of the window (and I cannot figure out how to code the magnification after the Image Viewer has been launched).
The code I am using is:
screensize = get(0, ‘ScreenSize’) ;
app.ImageAppOn = imtool(app.ImageCell{1}, ‘InitialMagnification’, ‘adaptive’) ;
%display the first image in the set ImageCell
set(app.ImageAppOn, ‘Position’, [650, 20, screensize(3)-650, screensize(4)-100])
%send the Image Viewer to the top right corner and resize to take up more screen
How can I accomplish both the larger window size and the larger magnification?
(I am using Matlab 2018b)
Thanks. app designer, image analysis MATLAB Answers — New Questions