var im = (PsdImage)Image.Load(@"D:\tong\MyProject\Psd\001-.psd");
var imagePath = @"D:\tong\MyProject\Psd\T_0003.jpg ";
FileStream fs = new FileStream(imagePath, FileMode.Open);
using (im)
{
var newLayer = new Aspose.PSD.FileFormats.Psd.Layers.Layer(fs);
newLayer.DisplayName = "NewLayer";
im.AddLayer(newLayer);
im.Save(@"D:\tong\MyProject\Psd\newPsd.psd", true);
}
The issues you have found earlier (filed as PSDNET-875) have been fixed in this update. This message was posted using Bugs notification tool by Yaroslav.Lisovskyi