How to put a picture on a button in a GUI?
이전 댓글 표시
Hi,
I wish to create a GUI to use with a SIMULINK model. I want to have a picture on my buttons in my GUI. How do I do this?
Thanks,
Jasmine
댓글 수: 1
채택된 답변
추가 답변 (3개)
Raxeee
2013년 1월 29일
1 개 추천
"he command imread('MyImageFile.jpg') . So image will be "
So where is the location of MyImageFile.jpg on the hard disk.
Please clarify.
댓글 수: 2
Offcourse on hard disk or on other secondary storage like USB stick flash memory. You can give the path also like
imread('C:\Documents\My Picture\MyImageFile.jpg')
on windows OS.
Raxeee
2013년 2월 3일
okay...thanks
Jonathan Siliézar
2017년 10월 3일
0 개 추천
Hi, thanks for the information, it was very helpful. Once I've loaded the .jpg image to the push button (I'm trying to create an icon with basic info for the user on how to use the program) the image is very large, how do I resize it to fit the push button's dimensions? Thanks in advance.
Sujith Roy
2018년 11월 15일
0 개 추천
Can you adjust the position of the icon in the button?
This command works - imread('MyImageFile.jpg').
But how do I position the image to the left and then add some text on the button?
카테고리
도움말 센터 및 File Exchange에서 Images에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!