LayerStateEffects.AddStroke
LayerStateEffects.AddStroke method
Fügt den Stricheffekt hinzu.
public StrokeEffect AddStroke(FillType fillType)
Parameter | Typ | Beschreibung |
---|---|---|
fillType | FillType | Die Typstrichfüllung. |
Rückgabewert
Die neue Instanz derStrokeEffect
Klasse.
Beispiele
Der folgende Code demonstriert die Unterstützung von Effekten in Timeline-Frames.
[C#]
string sourceFile = "4_animated.psd";
string outputFile = "output.psd";
using (var psdImage = (PsdImage)Image.Load(sourceFile))
{
TimeLine timeLine = TimeLine.InitializeFrom(psdImage);
int[] layerIds = timeLine.LayerIds;
var layerStateEffects11 = timeLine.Frames[1].LayerStates[layerIds[1]].StateEffects;
layerStateEffects11.AddDropShadow();
layerStateEffects11.AddGradientOverlay();
var layerStateEffects21 = timeLine.Frames[2].LayerStates[layerIds[1]].StateEffects;
layerStateEffects21.AddStroke(FillType.Color);
layerStateEffects21.IsVisible = false;
timeLine.ApplyTo(psdImage);
psdImage.Save(outputFile);
}
Siehe auch
- class StrokeEffect
- enum FillType
- class LayerStateEffects
- namensraum Aspose.PSD.FileFormats.Psd.Layers.Animation
- Montage Aspose.PSD