Products & Services Industries Academia Support User Community Company

Learn more about Image Processing Toolbox   

truesize - Adjust display size of image

Syntax

truesize(fig,[mrows ncols])

Description

truesize(fig,[mrows ncols]) adjusts the display size of an image. fig is a figure containing a single image or a single image with a colorbar. [mrows ncols] is a 1-by-2 vector that specifies the requested screen area (in pixels) that the image should occupy.

truesize(fig) uses the image height and width for [mrows ncols]. This results in the display having one screen pixel for each image pixel.

If you do not specify a figure, truesize uses the current figure.

Examples

Fit image to figure window.

imshow(checkerboard,'InitialMagnification','fit')

Resize image and figure to show image at its 80-by-80 pixel size.

truesize

See Also

imshow, iptsetpref, iptgetpref

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS