How do I update an image object in App Designer?
Afficher commentaires plus anciens
I'm using the App Designers image object to display a jpeg. The code modifies the image data and then writes it back to the jpeg. However if I reload it in the image object it uses the original jpeg - presumably cached and not updated. The only way I have found to make it use the new image is to use a different filename for the modified image and then point to the new file. The image object appears to have a reset function but trying to use it causes a 'no method' error.
4 commentaires
Guillaume
le 28 Juin 2019
We'd need to see the code you're using to understand what you're doing and where you've gone wrong.
Gary Burton-Wilcock
le 28 Juin 2019
Geoff Hayes
le 28 Juin 2019
Gary - so the only difference in the image is that you have added 25 to all elements of the app.img object? Do you see a change (in the image) when you view the updated image outside of MATLAB? Do you need to somehow refresh the app.Image?
Gary Burton-Wilcock
le 28 Juin 2019
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Explore and Edit Images with Image Viewer App dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
