Buttons on top of bitmap?

2 ビュー (過去 30 日間)
Jason
Jason 2015 年 3 月 10 日
コメント済み: Michael Haderlein 2015 年 3 月 10 日
Is it possible to display an image and on top of that image have a button (preferably using GUIDE). The reason is that I have a GUI that controls a stage for a microscope. I want to have buttons to act as a joystick i.e. up, down, left and right. Ideally I would like to have a button that is shaped like an arrow but this is not possible, so the next best thing is to have an image of an arrow, and place the button inside it.
Thanks Jason

採用された回答

Michael Haderlein
Michael Haderlein 2015 年 3 月 10 日
You might find this contribution useful (if I remember correctly, you can rotate the string by 90°):
Otherwise, usually the characters <>v^ are fine to represent the four directions
  2 件のコメント
Jason
Jason 2015 年 3 月 10 日
Thanks for your info. I would still like to have an image of an arrow with the button some where in this image.
Michael Haderlein
Michael Haderlein 2015 年 3 月 10 日
You can use the CData value of the uicontrol for showing an image. It needs a m x n x 3 array with the RGB information. NaN is transparent. That's also the way the file exchange contribution is working.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by