% --- Executes on button press in pushbutton5.
function pushbutton5_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton5 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
global src_img;
[filename,pathname] = uiputfile({\'*.jpg\';\'*.bmp\';\'*.gif\';\'*.png\';\'*.tif\'}, \'Write Pic\');
str=[pathname filename];
if str~=0
    imwrite(src_img,str);  
end

 

版权声明:本文为tiandsp原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/tiandsp/p/3641567.html