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
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
Enables storage, such as cookies, related to analytics.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.