Jump to content


Recommended Posts


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++)



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

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

This topic is now closed to further replies.
  • Create New...