Hi,
Hi Sarvan,
I have observed the PSD file and requirements. I have been able to observe an issue while changing the background color for selected layer. An issue with ID IMAGINGNET-2375 has been created in our issue tracking system to further investigate and resolve the issue. This thread has been linked with the issue so that you may be automatically notified once the issue will be fixed.
We are sorry for your inconvenience,
The issues you have found earlier (filed as IMAGINGNET-2375) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by Aspose.
I suggest you to please try using following sample code:
string fileName = "photooverlay_5_new";
PngOptions pngOptions = new PngOptions() { ColorType = PngColorType.TruecolorWithAlpha };
using (PsdImage input = (PsdImage)Image.Load(fileName + ".psd"))
{
foreach (Layer layer in input.Layers)
{
if (layer.Name == "Maincolor")
{
layer.ReplaceNonTransparentColors(Color.Orange);
input.Save(fileName + "_nonTransparentColors_result.png", pngOptions);
input.Save(fileName + "_nonTransparentColors_result.psd");
break;
}
}
}
using (PsdImage input = (PsdImage)Image.Load(fileName + ".psd"))
{
foreach (Layer layer in input.Layers)
{
if (layer.Name == "Maincolor")
{
layer.ReplaceColor(Color.LightGreen, 40, Color.Orange);
input.Save(fileName + "_specificColor_result.png", pngOptions);
input.Save(fileName + "_specificColor_result.psd");
break;
}
}
}
The issues you have found earlier (filed as ) have been fixed in this Aspose.Words for JasperReports 18.3 update.
How to psd image layers auto select an particular layer only
I have observed that you have made similar inquiry in another forum thread as well. I have shared my feedback for your kind reference over following thread link.