OuterGlowEffect.FillColor
OuterGlowEffect.FillColor property
获取或设置颜色。
public IFillSettings FillColor { get; set; }
适当的价值
颜色.
例子
以下代码演示了 OuterGlowEffect 支持。
[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());
}
也可以看看
- interface IFillSettings
- class OuterGlowEffect
- 命名空间 Aspose.PSD.FileFormats.Psd.Layers.LayerEffects
- 部件 Aspose.PSD