我需要编辑psd文件的文本层,并使用C#将它们保存为jpg或png格式。
我面临的问题是没有在后台打开Photoshop而没有发生。这是一个代码示例。
poly_model = make_pipeline(PolynomialFeatures(7),
LinearRegression())
rng = np.random.RandomState(1)
x = 10 * rng.rand(50)
y = np.sin(x) + 0.1 * rng.randn(50)
xfit = np.linspace(0, 10, 1000)
poly_model.fit(x.reshape(-1,1), y)
yfit = poly_model.predict(xfit.reshape(-1,1))
plt.scatter(x, y)
plt.plot(xfit, yfit)
我在这里调用javascript文件并修改psd文件的文本层。