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

1 次查看(过去 30 天)
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 个评论

请先登录,再进行评论。

回答(1 个)

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

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by