I have fig file and I want export transparent file from it.

1 回表示 (過去 30 日間)
Roozbeh ehsani
Roozbeh ehsani 2022 年 11 月 5 日
コメント済み: Jan 2022 年 11 月 7 日
I have fig file and I want to export a transparent file from it. Unfortunately, I can not regenerate the figure and use the command to export the transparent figure. Can anyone show me how can I export transparent figure from the toolbar of the fig.file?
  5 件のコメント
Roozbeh ehsani
Roozbeh ehsani 2022 年 11 月 6 日
WORKED! Thank you very much
Jan
Jan 2022 年 11 月 7 日
Fine. Then I post it as an answer again.

サインインしてコメントする。

回答 (1 件)

Jan
Jan 2022 年 11 月 7 日
F = getframe(gcf);
RGB = F.cdata;
BG = get(gcf, 'color');
imwrite(gcf, 'Output.png', 'Transparency', BG);

カテゴリ

Help Center および File ExchangeLighting, Transparency, and Shading についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by