我怎样才能得到一个PSD文件的图层?图层、文件、PSD

由网友(敢不敢以心换心)分享简介:我想从一个PSD文件中检索的所有层,并得到他们的名字,X和Y位置。I want to retrieve all layers from a PSD file and get their name, X and Y position.有一个C#库,能做到这一点?Is there a C# Lib that can...

我想从一个PSD文件中检索的所有层,并得到他们的名字,X和Y位置。

I want to retrieve all layers from a PSD file and get their name, X and Y position.

有一个C#库,能做到这一点?

Is there a C# Lib that can do that?

我已经试过这种LIB 从$ C $的CProject ,但我总是TargetInvokeException。我的PSD文件是从Photoshop CS5 ...

I've tried this lib from CodeProject, but I always get TargetInvokeException. My PSD files are from Photoshop CS5...

探索Paint.NET罗宾建议我能得到这个code:

Exploring Paint.NET as Robin suggested I could get to this code:

var ps = new PsdFile();
ps.Load(file);
var name = ps.Layers[0].Name;
var xy = ps.Layers[0].Location;

我需要包括这些参考资料:

I needed to include these references:

PhotoShop.dll PaintDotNet.Core.dll PhotoShop.dll PaintDotNet.Core.dll

推荐答案

您可以使用PSD-插件Paint.NET做到这一点。

You could use the PSD-plugin for Paint.NET to do it.

应该是相当容易从那里提取解析库。

Should be fairly easy to extract the parser library from there.

HTTP://psdplugin.$c$cplex.com/

阅读全文

相关推荐

最新文章