我有几个PSD文件
我正在使用http://imageresizing.net/库将文件转换为jpg格式
如何使用C#从PSD文件中获取DPI信息? 更新 我编写了以下代码,但问题在于它会在后台打开Photoshop
如何使用C#从PSD文件中获取DPI信息? 更新 我编写了以下代码,但问题在于它会在后台打开Photoshop
ps.Application a = new ps.Application() { Visible = false };
a.Load(filePath);
ps.Document doc = a.ActiveDocument;
dpi = doc.Resolution;
a.ActiveDocument.Close();
a.Quit();