美文网首页
2012.3.22gui中保存axes控件上图像的方法

2012.3.22gui中保存axes控件上图像的方法

作者: Drlilian | 来源:发表于2019-06-27 08:52 被阅读0次

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