Browse our Products
Aspose.PSD for .NET 25.6 - Release Notes
This page contains release notes for Aspose.PSD for .NET 25.6
Key | Summary | Category |
---|---|---|
PSDNET-1870 | Add API to Apply Layer Mask to Layer. | Feature |
PSDNET-2400 | Make TextLayer rendering not automatic to save original pixels before changes. | Feature |
Public API Changes
Added APIs:
- M:Aspose.PSD.FileFormats.Psd.Layers.Layer.ApplyLayerMask
- P:Aspose.PSD.ImageLoadOptions.PsdLoadOptions.AllowNonChangedLayerRepaint
Removed APIs:
- M:Aspose.PSD.FileFormats.Psd.Layers.TextLayer.ReleaseManagedResources
Usage examples:
PSDNET-1870. Add API to Apply Layer Mask to Layer
var sourceFile = Path.Combine(baseFolder, "example.psd");
var outFile = Path.Combine(outputFolder, "export.png");
using (var psdImage = (PsdImage)Image.Load(sourceFile, new PsdLoadOptions()))
{
psdImage.Layers[1].ApplyLayerMask();
psdImage.Save(outFile, new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha });
}
PSDNET-2400. Make TextLayer rendering not automatic to save original pixels before changes
string srcFile = Path.Combine(baseFolder, "psdnet2400.psd");
string output1 = Path.Combine(outputFolder, "unchanged-2400.png");
string output2 = Path.Combine(outputFolder, "updated-2400.png");
using (var psdImage = (PsdImage)Image.Load(srcFile,
new PsdLoadOptions() { AllowNonChangedLayerRepaint = false /* The new default behaviour */ }))
{
psdImage.Save(output1, new PngOptions());
((TextLayer)psdImage.Layers[1]).TextData.UpdateLayerData();
psdImage.Save(output2, new PngOptions());
}