How do I update an image object in App Designer?
Ältere Kommentare anzeigen
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 Kommentare
Guillaume
am 28 Jun. 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
am 28 Jun. 2019
Geoff Hayes
am 28 Jun. 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
am 28 Jun. 2019
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Blue finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
