extend disply window for large size images

2 views (last 30 days)
Yanqin
Yanqin on 24 Oct 2012
When displaying large size images, Matlab will popup:`Warning: Image is too big to fit on screen; displaying at 100% ` and display the image in a certain portion. Since the display window does not occupy the whole screen window, is there any way to extend the size of the display window to the size of the whold screen window in order to show the large size images at 100% ?
Best regards,

Answers (2)

Sean de Wolski
Sean de Wolski on 24 Oct 2012
I must be something but can't you just maximize it?

Image Analyst
Image Analyst on 29 Oct 2012
No, I don't believe so. I think the largest the figure window (containing the axes that contains your image) can be is the size of your screen. So you'll need to do things like adjust the zoom with the zoom function() if you want to see things pixel for pixel for example. You might need to use a drop down list (popup) or scroll bar to let the user adjust the zoom level.
  3 Comments
Image Analyst
Image Analyst on 5 Nov 2012
I mean that in Windows, the largest the figure window can be is the size of your screen, like I said. Try it. Make some window - any window whatsoever, it doesn't even have to be involved with MATLAB in any way. Now grab the border and try to enlarge it. You will see that it will stop letting you enlarge it once it reaches the width or height of your screen. So your screen is the largest possible area that any window can be, in MATLAB or in any application.
Jan
Jan on 5 Nov 2012
You can set the size of a figure even larger then the screen using the Windows-API, e.g. FEX: WindowAPI. But then any moving or resizing reduces the extent again.
However, a window, which is larger that the screen (or extended screen when using a multi-monitor setup), is not useful: There will not be a visible handle to move the figure and further drawback. Better zoom the image its axes, as Image Analyst has suggested. This is intuitive and can be controlled without tweaking the API of the operating system.

Sign in to comment.

Categories

Find more on Display Image in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!