有没有办法在 aPictureBox或中显示 PSD 文件的预览ListView?
可以在没有图书馆帮助的情况下完成吗?
There is no explicit native solution for this, but there are various libraries and projects that you can use.
Your best option may be to start with these CodeProject articles:
我已经尝试过有能力的技术链接,但它们不适用于大多数 psd 文件。这个: http: //www.codeproject.com/Articles/10398/Import-Adobe-Photoshop-psd-images好一点,但仍然不适用于较新的 psd 文件。
这个:http ://www.imagemagick.org/script/index.php工作正常(我从安装文件夹中检查了编译的 convert.exe),并且有一个 .NET 包装器: http://imagemagick.codeplex。 com/,我没有使用。无论如何,您可以运行 convert.exe 的外部进程以将文件保存为通用格式并将其加载到 PictureBox。
如果您有时间阅读代码,该库是开源的。