saveas试了几种方法,都会失真。现在用imread方法来保存
此方法不会造成失真
对axes3保存
[filename,pathname]=uiputfile({'*.bmp'},'Save file ');
str=strcat(pathname,filename);
im = getframe(handles.axes3)
imwrite(im.cdata,str,'bmp')
saveas试了几种方法,都会失真。现在用imread方法来保存
此方法不会造成失真
对axes3保存
[filename,pathname]=uiputfile({'*.bmp'},'Save file ');
str=strcat(pathname,filename);
im = getframe(handles.axes3)
imwrite(im.cdata,str,'bmp')
本文标题:2012.3.22gui中保存axes控件上图像的方法
本文链接:https://www.haomeiwen.com/subject/hvtlcctx.html
网友评论