필터 지우기
필터 지우기

how i put image as background to fram in GUI????

조회 수: 2 (최근 30일)
Eman  Shaltout
Eman Shaltout 2012년 3월 18일
i need to put background to fram in the interface i need background be image

채택된 답변

Walter Roberson
Walter Roberson 2012년 3월 19일
image() and imagesc() and imshow() and surf() with texture mapping and patch() with texture mapping all require that the parent object be an axes. You are not required to use that axes object for anything else, but the graphics objects must go on some axes.
If for some reason it is critical that an axes not be used ("Ours is not to reason why..."), then there is only one documented mechanism:
Create a uicontrol() of style togglebutton or pushbutton whose Position covers the entire background, and set the CData property of the uicontrol to be a truecolor (RGB) image of values in the range 0 to 1, such as would be produced by using im2double().
You would have to position everything else in your interface on top of that uicontrol(), which is likely to be a bit of a mess. Watch out, the uicontrol() would be active! It is not clear from the documentation what would happen to the image if you set the Enable property of the uicontrol to 'off'.

추가 답변 (1개)

Image Analyst
Image Analyst 2012년 3월 18일
See this:
How do I add a background image to my GUI or figure window?
  댓글 수: 2
Eman  Shaltout
Eman Shaltout 2012년 3월 18일
i need image to be shown as abackground not to be use axes
thank you alot for answer
Jan
Jan 2012년 3월 18일
Please read the linked page again. An image requires an axes object as parent and the axes object is displayed in the background.
If this really does not solve your problem, please explain what "fram" is.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by