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 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