Jump to content

photoshop.dll


rajeshanand
 Share

Recommended Posts

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

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

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...