Control image transparency with a slider- appDesigner
古いコメントを表示
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 件のコメント
Adam
2019 年 7 月 15 日
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
2019 年 7 月 15 日
Adam
2019 年 7 月 15 日
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'
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Update figure-Based Apps についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
