InnerShadowEffect Class
Inner Shadow Layer effect
Inheritance Hierarchy
SystemObject
  Aspose.PSD.FileFormats.Psd.Layers.LayerEffectsInnerShadowEffect

Namespace: Aspose.PSD.FileFormats.Psd.Layers.LayerEffects
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 21.10
Syntax
public class InnerShadowEffect : ILayerEffect, 
	IShadowEffect

The InnerShadowEffect type exposes the following members.

Properties
  NameDescription
Public propertyAngle
Gets or sets the angle in degrees.
Public propertyBlendMode
Gets or sets the blend mode.
Public propertyColor
Gets or sets the color.
Public propertyDistance
Gets or sets the distance in pixels.
Public propertyIsVisible
Gets or sets a value indicating whether this instance is visible.
Public propertyNoise
Gets or sets the noise.
Public propertyOpacity
Gets or sets the opacity.
Public propertySize
Gets or sets the blur value in pixels.
Public propertySpread
Gets or sets the spread (choke) as percentage.
Public propertyUseGlobalLight
Gets or sets a value indicating whether [use this angle in all of the layer effects].
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Examples
The following code demonstrates how to change settings of the Inner Shadow Layer Effect.
[C#]

string sourceFile = "example.psd";
string outputFile = "sample_out.psd";

// Load an existing image into an instance of PsdImage class
var loadOptions = new PsdLoadOptions();
loadOptions.LoadEffectsResource = true;
using (var image = (PsdImage)Image.Load(sourceFile, loadOptions))
{
    var layer = image.Layers[image.Layers.Length - 1];
    var shadowEffect = (IShadowEffect)layer.BlendingOptions.Effects[0];

    shadowEffect.Color = Color.Green;
    shadowEffect.Opacity = 128;
    shadowEffect.Distance = 1;
    shadowEffect.UseGlobalLight = false;
    shadowEffect.Size = 2;
    shadowEffect.Angle = 45;
    shadowEffect.Spread = 50;
    shadowEffect.Noise = 5;

    image.Save(outputFile, new PsdOptions(image));
}
See Also