Filter löschen
Filter löschen

Image in a matlab gui

2 Ansichten (letzte 30 Tage)
Shree Nath
Shree Nath am 25 Jun. 2012
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 -

Antworten (1)

Walter Roberson
Walter Roberson am 25 Jun. 2012
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 Kommentar
Shree Nath
Shree Nath am 27 Sep. 2012
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',...,....)" ?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Migrate GUIDE Apps finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by