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
2022년 11월 7일
F = getframe(gcf);
RGB = F.cdata;
BG = get(gcf, 'color');
imwrite(gcf, 'Output.png', 'Transparency', BG);
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Lighting, Transparency, and Shading에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!