Control image transparency with a slider- appDesigner
Show older comments
Hi all,
I'm trying to control de tranparency of two images using a slider.
Currently, I don't know how to do the code for this feature with a callback function with the slider.
Can anybody help me?
What I wanted, for a better understanding, is that when I'm at a max value, I only see one of the images and at the min value I only see the other. Obviously, when I move the slider I want the transparency of them to change.
Thanks in advance
JM
3 Comments
Adam
on 15 Jul 2019
If you keep hold of the image handles on your main app object then it is simply a case of updating the AlphaData properties of each of the images to whatever you want in your slider callback, based on the current value of the slider.
João Mendes
on 15 Jul 2019
Adam
on 15 Jul 2019
It would be easier if you post the relevant code you currently have. I don't really have time for long answers from scratch, hence me adding a comment rather than an 'Answer'
Accepted Answer
More Answers (0)
Categories
Find more on Environment and Settings in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!