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.