Move pictures to form an animation in GUI
2 ビュー (過去 30 日間)
古いコメントを表示
Is there anyway to move several small pictures on top of another big picture in GUI? Those small pictures need to move in some velocities(pixels/s), which can be adjusted by users.
Thank you so much for helping!
0 件のコメント
回答 (1 件)
Walter Roberson
2017 年 2 月 27 日
image() the second picture into existence after drawing the first, and record the handle of the image. Then to move it, you can set its XData and YData property.
If the "several small pictures" move rigidly to each other then you could create a single larger image that contains them all, and set the Alpha property of the image() object to 0 in the places where the top images were not to appear.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Animation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!