Image in a matlab gui

조회 수: 3 (최근 30일)
Shree Nath
Shree Nath 2012년 6월 25일
can i write particular text on any image, so that it may be easy to scroll it ? or.. like having an image and the text simultaneously in same position and getting them scrolled at the same time to get the same feeling? but this may require having many images at the same time in a single window..
take a look of what am i trying to do -

답변 (1개)

Walter Roberson
Walter Roberson 2012년 6월 25일
Image objects created with image() use data coordinates for the positioning, which is the same coordinate system that text() uses. Therefore if you can find a way of scrolling the axes, the two will scroll together.
If you have the image processing toolbox you can use http://www.mathworks.com/help/toolbox/images/ref/imscrollpanel.html . That takes the handle of an image and parents the image to be inside a uipanel. If you then set() the Parent property of the text to be the handle returned by imscrollpanel then the image and text will scroll together.
  댓글 수: 1
Shree Nath
Shree Nath 2012년 9월 27일
how will it be possible for me to add and control the working of the text() function? i have no idea of how to get its handle and then to work upon? i mean what arguement will i have to add in "set(argument,'Position',...,....)" ?

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

카테고리

Help CenterFile Exchange에서 Graphics Object Properties에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by