PatternOverlayEffect.EffectType
PatternOverlayEffect.EffectType property
Bir tür efekt alır type
public LayerEffectsTypes EffectType { get; }
Örnekler
Aşağıdaki kod, ILayerEffect.EffectType özelliğinin desteğini gösterir.
[C#]
string inputFile = "input.psd";
string outputWithout = "outputWithout.png";
string outputWith = "outputWith.png";
using (PsdImage psdImage = (PsdImage)Image.Load(inputFile, new LoadOptions()))
{
psdImage.Save(outputWithout, new PngOptions());
Layer workLayer = psdImage.Layers[1];
DropShadowEffect dropShadowEffect = workLayer.BlendingOptions.AddDropShadow();
dropShadowEffect.Distance = 0;
dropShadowEffect.Size = 8;
dropShadowEffect.Opacity = 20;
foreach (ILayerEffect iEffect in workLayer.BlendingOptions.Effects)
{
if (iEffect.EffectType == LayerEffectsTypes.DropShadow)
{
// yakalandı
psdImage.Save(outputWith, new PngOptions());
}
}
}
Ayrıca bakınız
- enum LayerEffectsTypes
- class PatternOverlayEffect
- ad alanı Aspose.PSD.FileFormats.Psd.Layers.LayerEffects
- toplantı Aspose.PSD