LayerStateEffects.AddStroke
LayerStateEffects.AddStroke method
Adds the stroke effect.
public StrokeEffect AddStroke(FillType fillType)
Parameter | Type | Description |
---|---|---|
fillType | FillType | The type stroke fill. |
Return Value
The new instance of the StrokeEffect
class.
Examples
The following code demonstrates support of effects in Timeline frames.
[C#]
string sourceFile = "4_animated.psd";
string outputFile = "output.psd";
using (var psdImage = (PsdImage)Image.Load(sourceFile))
{
Timeline timeline = psdImage.Timeline;
var layerStateEffects11 = timeline.Frames[1].LayerStates[1].StateEffects;
layerStateEffects11.AddDropShadow();
layerStateEffects11.AddGradientOverlay();
var layerStateEffects21 = timeline.Frames[2].LayerStates[1].StateEffects;
layerStateEffects21.AddStroke(FillType.Color);
layerStateEffects21.IsVisible = false;
psdImage.Save(outputFile);
}
See Also
- class StrokeEffect
- enum FillType
- class LayerStateEffects
- namespace Aspose.PSD.FileFormats.Psd.Layers.Animation
- assembly Aspose.PSD