Class OuterGlowEffect

OuterGlowEffect class

Outer Glow Layer effect

public class OuterGlowEffect : ILayerEffect

Properties

NameDescription
BlendMode { get; set; }Gets or sets the blend mode.
EffectType { get; }Gets a type of effect type
FillColor { get; set; }Gets or sets the color.
Intensity { get; set; }Gets or sets the angle in degrees.
IsAntiAliasing { get; set; }Gets or sets enabled AntiAliasing effect
IsSoftBlend { get; set; }Gets or sets a value indicating whether [knocks out].
IsVisible { get; set; }Gets or sets a value indicating whether this instance is visible.
Jitter { get; set; }Gets or sets the noise.
Noise { get; set; }Gets or sets the noise.
Opacity { get; set; }Gets or sets the opacity.
Range { get; set; }Gets or sets the noise.
Size { get; set; }Gets the blur value in pixels.
Spread { get; set; }Gets or sets the intensity as a percent.

Examples

The following code demonstrates the OuterGlowEffect support.

[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());
}

See Also