Image Processing Toolbox User's Guide Previous page   Next Page
truesize

Adjust display size of an image

Syntax

Description

truesize(fig,[mrows mcols]) adjusts the display size of an image. fig is a figure containing a single image or a single image with a colorbar. [MROWS MCOLS] 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 MCOLS]. 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.

Example

Fit image to figure window.

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

See Also

imshow, iptsetpref, iptgetpref


Previous page  translate uint16 Next page

© 1994-2005 The MathWorks, Inc.