Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

Image as background

조회 수: 5 (최근 30일)
Camilla
Camilla 2012년 1월 23일
마감: MATLAB Answer Bot 2021년 8월 20일
How should I use an image as the background in GUI? Thank you very much

답변 (3개)

Sean de Wolski
Sean de Wolski 2012년 1월 23일

Walter Roberson
Walter Roberson 2012년 1월 23일

Jethro
Jethro 2012년 1월 24일
Dear Cami, you can use this code I write below...
First of all you have to create axes for the hole space of your figure.
After that you wrote this text in your axes callback
axes(hObject)
I=imread('name.ext');
imshow(I)
name.ext is the complete name of the image, something like 'image.jpg'.
If imshow gives you some problems, there's a lot of functions that you can use, something like imagesc which works like imshow , but you have to hide axes and you can do it using
axis(handles.TAG, 'off');
If you have other problems, contact me!

이 질문은 마감되었습니다.

태그

Community Treasure Hunt

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

Start Hunting!

Translated by