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

1 visualización (últimos 30 días)
Roozbeh ehsani
Roozbeh ehsani el 5 de Nov. de 2022
Comentada: Jan el 7 de Nov. de 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 comentarios
Roozbeh ehsani
Roozbeh ehsani el 6 de Nov. de 2022
WORKED! Thank you very much
Jan
Jan el 7 de Nov. de 2022
Fine. Then I post it as an answer again.

Iniciar sesión para comentar.

Respuestas (1)

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

Categorías

Más información sobre Lighting, Transparency, and Shading en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by