imputfile
Display Save Image dialog box
Description
[
displays the Save Image dialog box which you can use to specify the
full path and format of a file. Using the dialog box, you can navigate to folders in a file
system and select a particular file or specify the name of a new file.
filename
,ext
,user_canceled
]
= imputfileimputfile
limits the types of files displayed in the dialog box to
the image file format selected in the Files of Type menu.
If you click Save, then imputfile
returns the full
path to the file in filename
and the file extension associated with the
file format selected from the Files of Type menu in
ext
. imputfile
automatically adds the file name
extension (such as .jpg
) to the file name.
If you click Cancel or close the Save Image dialog
box, then imputfile
closes and returns control to MATLAB®, sets user_canceled
to True
(1), and
sets filename
and ext
to empty character vectors
(''
). Otherwise, user_canceled
is
False
(0).
Note
The Save Image dialog box is modal; it blocks the MATLAB command line until you click Save or cancel the operation.
Examples
Output Arguments
Version History
Introduced in R2007b
See Also
Image
Viewer | imformats
| imgetfile
| imsave