Can’t apply outerglow to layer when I want to save file as .psd.
This code from example works only for save to .png, but when saving to .psd outerglow does not appear.
What works:
[C#]
string src = “GreenLayer.psd”;
string outputPng = “output261.png”;using (var image = (PsdImage)Image.Load(src))
{
OuterGlowEffect effect = image.Layers[1].BlendingOptions.AddOuterGlow();
effect.Range = 10;
effect.Spread = 10;
((IColorFillSettings)effect.FillColor).Color = Color.Red;
effect.Opacity = 128;
effect.BlendMode = BlendMode.Normal;image.Save(outputPng, new PngOptions());
}
What I want to do
string src = “GreenLayer.psd”;
string outputPng = “output261.psd”;using (var image = (PsdImage)Image.Load(src))
{
OuterGlowEffect effect = image.Layers[1].BlendingOptions.AddOuterGlow();
effect.Range = 10;
effect.Spread = 10;
((IColorFillSettings)effect.FillColor).Color = Color.Red;
effect.Opacity = 128;
effect.BlendMode = BlendMode.Normal;image.Save(outputPng, new PsdOptions());
}