xin
2008-05-09, 23:17
我有一个GUI界面,是对矩阵进行运算后,输出成jpg格式的图像,现在我的保存方法如下:
[filename,pathname] = uiputfile('*.jpg','图片保存为');
if isequal([filename,pathname],[0,0])
return
% Otherwise construct the fullfilename and Check and load the file.
else
aa=strcat(pathname,filename);
handles.axes1=image(surTem+surTem0706-273)
%findobj(gcf,'Type','image')
saveas(handles.axes1,aa);
end
这代码能保存图像,但是保存的只是我的界面的一角,请那位大侠能指导一下,如何才能保存在axes中的图像?谢谢
[filename,pathname] = uiputfile('*.jpg','图片保存为');
if isequal([filename,pathname],[0,0])
return
% Otherwise construct the fullfilename and Check and load the file.
else
aa=strcat(pathname,filename);
handles.axes1=image(surTem+surTem0706-273)
%findobj(gcf,'Type','image')
saveas(handles.axes1,aa);
end
这代码能保存图像,但是保存的只是我的界面的一角,请那位大侠能指导一下,如何才能保存在axes中的图像?谢谢