BlendingOptions.AreEffectsEnabled

BlendingOptions.AreEffectsEnabled property

Gets or sets the visibility of all layer effects.

public bool AreEffectsEnabled { get; set; }

Examples

Demonstrates how to enable or disable layer effects using AreEffectsEnabled property.

[C#]

string srcFile = "2485.psd";
string outputOnFile = "on_2485.png";
string outputOffFile = "off_2485.png";

using (var psdImage = (PsdImage)Image.Load(srcFile, new PsdLoadOptions() { LoadEffectsResource = true }))
{
    psdImage.Save(outputOnFile);

    psdImage.Layers[1].BlendingOptions.AreEffectsEnabled = false;

    psdImage.Save(outputOffFile);
}

See Also