Info

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

How can I include an image into a GUI?

조회 수: 1 (최근 30일)
Tomy Duby
Tomy Duby 2016년 5월 13일
마감: MATLAB Answer Bot 2021년 8월 20일
I need to include images (in .jpg or .bmp format) in certain locations in a GUI that I am preparing.
How can I do this? A simple example would be most useful.
Thanks Tomy

답변 (1개)

Geoff Hayes
Geoff Hayes 2016년 5월 14일
Tomy - if you are using GUIDE to create your GUI, then just add one or more axes in the locations where you want to display the images. Then, in the _OpeningFcn of your GUI, load the images and place them in these axes using either imshow or image. In either of these calls, make sure that you specify the axes to which you want to display the image.
  댓글 수: 1
Tomy Duby
Tomy Duby 2016년 5월 15일
Thanks, Geoff, this is exactly what I was looking for!
Tomy

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

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by