Info

La pregunta está cerrada. Vuélvala a abrir para editarla o responderla.

How can I include an image into a GUI?

1 visualización (últimos 30 días)
Tomy Duby
Tomy Duby el 13 de Mayo de 2016
Cerrada: MATLAB Answer Bot el 20 de Ag. de 2021
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

Respuestas (1)

Geoff Hayes
Geoff Hayes el 14 de Mayo de 2016
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 comentario
Tomy Duby
Tomy Duby el 15 de Mayo de 2016
Thanks, Geoff, this is exactly what I was looking for!
Tomy

La pregunta está cerrada.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by