你如何拯救一个trasparent背景图吗?
870(30天)
显示旧的评论
答案(3)
崔
2021年8月30日
由于Matlab R2020a,使用“exportgraphics”,例如,你可以这样做
x = 0: .1:2 *π;
y = sin (x);
%保存到透明的形象
图;
情节(x, y,“线宽”4);
集(gcf,“颜色”,“没有”);
集(gca),“颜色”,“没有”);
exportgraphics (gcf“transparent.eps”,…%因为R2020a
“ContentType”,“向量”,…
“写成BackgroundColor”,“没有”)
Subba Reddy
2020年1月22日
非matlab方法,可以使用gimp软件把白色背景从图像,通过选择背景颜色选择工具,逆选择和复制。然后创建新的gimp窗口与背景选项tranperancy,并粘贴到出口,png。而不是可编程可以用来准备演示图片。
2的评论
詹姆斯·凡·赞德
2023年5月22日20:39
再说一遍,我是评论一个先前的建议。相关代码:
流(pdf \ n”);exportgraphics (gca,‘l16.pdf’,‘写成BackgroundColor’,‘没有’);
流(“png \ n”);exportgraphics (gca,‘l16.png’,‘写成BackgroundColor’,‘没有’);
流(“eps \ n”);exportgraphics (gca,‘l16.eps’,‘写成BackgroundColor’,‘没有’);