some trouble about background in gui

I have problem to make background in gui. I'm using this code. It work to display my image as background, but when i browse another image, my background change become the image that i browse.
here my code:
function tes2_OpeningFcn(hObject, eventdata, handles, varargin)
handles.output = hObject;
guidata(hObject, handles);
ha = axes('units','normalized','position',[0 0 1 1]);
uistack(ha,'bottom');
[back map] = imread('Marilyn-Monroe-22388.jpg');
image(back)
colormap (map)
set(ha,'handlevisibility','off','visible','off')
function Open_Callback(hObject, eventdata, handles)
global citra
try
[filename, foldername] = uigetfile('*.jpg');
if filename ~= 0
FileName = fullfile(foldername, filename);
end
citra = imread(FileName);
imshow(citra, []);
end
handles.citra=citra;
guidata(hObject,handles);
thanks before

3 件のコメント

Walter Roberson
Walter Roberson 2013 年 6 月 6 日
Please read the guide to tags and retag this question; see http://www.mathworks.co.uk/matlabcentral/answers/43073-a-guide-to-tags
Walter Roberson
Walter Roberson 2013 年 6 月 6 日
You have not indicated the difference between how the program behaves and how you want it to behave. You mentioned how it does behave, but not what you want it to do differently.
Lidank Abiel
Lidank Abiel 2013 年 6 月 18 日
I'm sorry sir

回答 (0 件)

この質問は閉じられています。

製品

タグ

質問済み:

2013 年 6 月 6 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by