How to show images in a GUI table

2 vues (au cours des 30 derniers jours)
Mark M
Mark M le 8 Juil 2017
Commenté : Walter Roberson le 6 Juin 2018
Hello,
I am trying to run a GUI that will load an excel file into a uitable. I want some of the cells of that tables to show images, or at least perhaps a thumbnail to the image. Is this possible?

Réponses (1)

Walter Roberson
Walter Roberson le 9 Juil 2017
My experiences suggest that you probably will not be happy with the results, as you cannot control the cell sizes the way you might hope. The cell size that will be automatically chosen will depend upon the size of the URL string, not the size of the image being inserted.
You could probably do better using the Java level; http://undocumentedmatlab.com has some articles about uitable and java.
  2 commentaires
fareed jamaluddin
fareed jamaluddin le 1 Juin 2018
if i need to display an imcrop of image into the uitable do i need to imwrite it first as .png file first then display it using the html method?
Walter Roberson
Walter Roberson le 6 Juin 2018
It probably does not need to be png specifically, but png is known to work. It could probably be jpg or bmp . Possibly not tiff though.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Image Processing Toolbox dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by