Enum LayerEffectsTypes
LayerEffectsTypes enumeration
レイヤーブレンド効果.
public enum LayerEffectsTypes
値
| 名前 | 価値 | 説明 |
|---|---|---|
| DropShadow | 0 | ドロップ シャドウ。 |
| OuterGlow | 1 | 外側のグロー. |
| PatternOverlay | 2 | パターンオーバーレイ. |
| GradientOverlay | 3 | グラデーション オーバーレイ。 |
| ColorOverlay | 4 | カラーオーバーレイ. |
| Satin | 5 | サテン効果タイプ. |
| InnerGlow | 6 | 内側の輝き. |
| InnerShadow | 7 | 内側の影。 |
| Stroke | 8 | ストローク. |
| BevelEmboss | 9 | ベベルエンボス. |
例
次のコードは、ILayerEffect.EffectType プロパティのサポートを示しています。
[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)
{
// キャッチした
psdImage.Save(outputWith, new PngOptions());
}
}
}