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

1 Ansicht (letzte 30 Tage)
Roozbeh ehsani
Roozbeh ehsani am 5 Nov. 2022
Kommentiert: Jan am 7 Nov. 2022
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 Kommentare
Roozbeh ehsani
Roozbeh ehsani am 6 Nov. 2022
WORKED! Thank you very much
Jan
Jan am 7 Nov. 2022
Fine. Then I post it as an answer again.

Melden Sie sich an, um zu kommentieren.

Antworten (1)

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

Kategorien

Mehr zu Lighting, Transparency, and Shading finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by