Screenshot of MATLAB Web App
15 ビュー (過去 30 日間)
古いコメントを表示
Hi,
do you know a way to take a screenshot of a MATLAB Web App
The functions exportapp, exportgraphics, ... aren't supported in Web Apps.
2 件のコメント
Adrian
2023 年 3 月 22 日
While I can't answer your question - I'm looking for an alternative to exportapp as well, exportgraphics is actually supported in Webapps. You need to do it like
exportgraphics(axes, filename);
web(filename)
and then filename is getting downloaded in your browsers standard download path.
Amos
2024 年 12 月 13 日
Unfortunately, "exportgraphics does not capture most UI components, such as buttons or sliders".
It would be helpful if the above table included rows for webapp-compatibility and -limitations (e.g., for getframe as mentioned in Adrian's comment below).
回答 (1 件)
Tushar
2023 年 4 月 17 日
Hi,
Starting in Matlab r2020b, you can take snapshots of an app / uifigure using the functions below.
Refer to the below article to get more info:
Hope it helps!!
1 件のコメント
Adrian
2023 年 4 月 17 日
編集済み: Adrian
2023 年 4 月 17 日
getframe does not support the following functionality in MATLAB Online™ or in Web Apps (MATLAB Compiler):
- Capturing the contents of a figure created with the uifigure function or any axes in the figure.
- Capturing the contents of an app created with App Designer or any axes in the app.
Exportapp is even mentioned in the question itself as not supported in Webapps.
参考
カテゴリ
Help Center および File Exchange で MATLAB Web App Server についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!