I have a png file I want to display and a pushbutton but I can't figure out how to make the push button the size of the image.

 채택된 답변

Image Analyst
Image Analyst 2017년 11월 25일

0 개 추천

댓글 수: 4

Getty Hill
Getty Hill 2017년 11월 25일
yes, all it does is resize the image to the button. I want the button to resize to the image.
Image Analyst
Image Analyst 2017년 11월 25일
Why not just make your button the biggest size you ever expect to have? Otherwise if you resize, your button may obscure other controls on your GUI.
Getty Hill
Getty Hill 2017년 11월 25일
okay, but how do you set the button size?
Image Analyst
Image Analyst 2017년 11월 25일
Set the Position property. Easily done if you're using GUIDE. You can just click and drag the handles to make it whatever size you want or to have it be in a different location. See the tutorial:

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

질문:

2017년 11월 25일

댓글:

2017년 11월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by