PsdImage.AddVibranceAdjustmentLayer

PsdImage.AddVibranceAdjustmentLayer method

添加振动调整层。

public VibranceLayer AddVibranceAdjustmentLayer()

返回值

新创建的 Vibrance 层。

例子

以下代码示例演示了对 VibranceLayer 层的支持以及编辑此调整的能力。

[C#]

string sourceFileName = "WithoutVibrance.psd";
string outputFileNamePsd = "out_VibranceLayer.psd";
string outputFileNamePng = "out_VibranceLayer.png";

using (PsdImage image = (PsdImage) Image.Load(sourceFileName))
{
    // 创建一个新的 VibranceLayer
    VibranceLayer vibranceLayer = image.AddVibranceAdjustmentLayer();
    vibranceLayer.Vibrance = 50;
    vibranceLayer.Saturation = 100;

    image.Save(outputFileNamePsd);
    image.Save(outputFileNamePng, new PngOptions());
}

也可以看看