ColorBalanceAdjustmentLayer.HighlightsYellowBlueBalance

ColorBalanceAdjustmentLayer.HighlightsYellowBlueBalance property

获取或设置高光黄蓝平衡。

public short HighlightsYellowBlueBalance { get; set; }

适当的价值

亮点黄蓝平衡.

例外

例外(健康)状况
ArgumentOutOfRangeExceptionHighlights Yellow Blue Balance 必须在 -100 到 +100 之间。

例子

以下代码演示了对 ColorBalanceAdjustmentLayer 的支持。

[C#]

var filePath = "ColorBalance.psd";
var outputPath = "ColorBalance_out.psd";
using (var im = (PsdImage)Image.Load(filePath))
{
    foreach (var layer in im.Layers)
    {
        var cbLayer = layer as ColorBalanceAdjustmentLayer;
        if (cbLayer != null)
        {
            cbLayer.ShadowsCyanRedBalance = 30;
            cbLayer.ShadowsMagentaGreenBalance = -15;
            cbLayer.ShadowsYellowBlueBalance = 40;
            cbLayer.MidtonesCyanRedBalance = -90;
            cbLayer.MidtonesMagentaGreenBalance = -25;
            cbLayer.MidtonesYellowBlueBalance = 20;
            cbLayer.HighlightsCyanRedBalance = -30;
            cbLayer.HighlightsMagentaGreenBalance = 67;
            cbLayer.HighlightsYellowBlueBalance = -95;
            cbLayer.PreserveLuminosity = true;
        }
    }

    im.Save(outputPath);
}

也可以看看