rajeshanand Posted December 26, 2008 Share Posted December 26, 2008 Hi, I have downloaded photoshop.dll provided in this site and tried to use that in my .Net application to get layers from psd file. The code is Image img; MemoryStream stream = new MemoryStream(); BinaryReverseWriter BRW = new BinaryReverseWriter(stream); PhotoshopFile.PsdFile psd = new PsdFile(); psd.Load(ImagePath); // Image Path is file location for (int i = 0; i < psd.Layers.Count; i++) { psd.Layers.Save(BRW); stream.Seek(0, System.IO.SeekOrigin.Begin); img = Image.FromStream(stream, true, true); // here Parameter is not valid error occurs. } Please help me to save layers from psd file. Link to comment Share on other sites More sharing options...
Rick Brewster Posted December 26, 2008 Share Posted December 26, 2008 This is a forum for Paint.NET plugin development questions. It is not a forum for asking about how those plugins can be incorporated into your application. Thread Closed The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Recommended Posts