📄 save_image.m
字号:
function k=save_image(filename)%SAVE_IMAGE Save the image in the file FullFname%% COUNTS = SAVE_IMAGE(FILENAME)%% If filename is empty ask for the file name.% Return the same as nano3write% This function is used from the menu save command.%% See Also: AFMWRITE%% Claudio May 30, 1995%%% Copyright (c) 1995 by Claudio Rivetti and Mark Young% claudio@alice.uoregon.edu, mark@alice.uoregon.edu%global H I readpath Fname FullFname isModifyif nargin == 0 filename='';endwhile 1 if isempty(filename) [name, p]=uigetfile([readpath '*']); if isempty(name) | name == 0 return; end filename = [p name]; end if exist(filename)==2 & nargin==0 r=alexdlg(['|File: ' filename '|| already exist.|| Overwrite it?']); if strcmp(r, 'Cancel'), return;end if strcmp(r, 'Yes'), break;end filename=''; else break; endend Fname=name;FullFname=filename;f=watchon;statusbar(['Saving image in: ' filename]);[c, errmsg] = nano3write(filename, H, height2ind(H, I));watchoff(f);clearstatusbar;if isempty(errmsg) imagetitle; isModify=0;else alexerror([filename '|' errmsg]);endif nargout ~= 0 k=c;endreturn
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -