Can we show an image in its original size in MATLAB?

Right now when we are showing, it is exactly fitted to the image window size. However, I want to show the image in its original size. When the image is of larger size, a scroll bar should appear in the image window. This would allow the user to view the image in its original size. 

Any ideas on how to achieve this? Is this possible?
['https://Stackoverflow.com/questions/1427602', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/-1/']
Matlab slider has a problem that it fires callback only on MouseUp and not on MouseMove, so pure matlab implementation would always feels strange.

Better way - go for Java in Matlab. So you do not have to re-implement whole scroll logics. You can put Java Swing GUI component inside Matlab window, it is not difficult at all.

Specifically you have to use Swing `JScrollPane` Class. With Matlab `javacomponent()` function you can put it inside matlab window.

There are tons of examples on the web on how to get image into scroll pane, just browse for `JScrollPane image`. You can use Java classes inside matlab with usual Matlab syntax (no need for `new` keyword, ecc.)
This code from MATLAB's Answers forum creates a window where the image is shown at native resolution (100%), and also gives a "navigation" window showing where your viewed section of the image (in the main window) fits into the whole image.

```
% Create a scroll panel with a Magnification Box and an Overview tool.
hFig = figure('Toolbar','none',...
              'Menubar','none');
hIm = imshow('saturn.png');
hSP = imscrollpanel(hFig,hIm); % Handle to scroll panel.
set(hSP,'Units','normalized',...
        'Position',[0 .1 1 .9])

% Add a Magnification Box and an Overview tool.
hMagBox = immagbox(hFig,hIm);
pos = get(hMagBox,'Position');
set(hMagBox,'Position',[0 0 pos(3) pos(4)])
imoverview(hIm)

```

([Forum post link](https://au.mathworks.com/matlabcentral/answers/151402-why-isn-t-truesize-working-properly))