nik
nik

Reputation: 143

Matlab GUI: Resizing image(Loaded to push button) when the GUI window is resized

I have loaded an image into a Pushbutton and the property of GUI window resizable proportion. When ever the GUI window is resized the image does not fit the size of the push button.

I would like to have even the image resized like the push button. What needs to be done for this. Sorry, I could not upload the image(website did not allowed me to do so)

Upvotes: 1

Views: 1035

Answers (1)

A. Donda
A. Donda

Reputation: 8476

Set the ResizeFcn property of the figure window, and put code to resize the image to fit the new button dimensions into the callback function.

Upvotes: 1

Related Questions