2012.3.22gui中保存axes控件上图像的方法
2019-06-27 本文已影响0人
Drlilian
saveas试了几种方法,都会失真。现在用imread方法来保存
此方法不会造成失真
对axes3保存
[filename,pathname]=uiputfile({'*.bmp'},'Save file ');
str=strcat(pathname,filename);
im = getframe(handles.axes3)
imwrite(im.cdata,str,'bmp')