PsdImageAddBlackWhiteAdjustmentLayer Method
Adds the black white adjustment layer.

Namespace: Aspose.PSD.FileFormats.Psd
Assembly: Aspose.PSD (in Aspose.PSD.dll) Version: 20.6
Syntax
public BlackWhiteAdjustmentLayer AddBlackWhiteAdjustmentLayer()

Return Value

Type: BlackWhiteAdjustmentLayer
The created black white adjustment layer.
Examples
The following example demonstrates how you can add the black white adjustment layer at runtime in Aspose.PSD
[C#]

string sourceFileName = "Stripes.psd";
string outputFileName = "OutputStripes.psd";
using (PsdImage image = (PsdImage)Image.Load(sourceFileName))
{
    BlackWhiteAdjustmentLayer newLayer = image.AddBlackWhiteAdjustmentLayer();
    newLayer.Name = "BlackWhiteAdjustmentLayer";
    newLayer.Reds = 22;
    newLayer.Yellows = 92;
    newLayer.Greens = 70;
    newLayer.Cyans = 79;
    newLayer.Blues = 7;
    newLayer.Magentas = 28;

    image.Save(outputFileName, new PsdOptions());
}
See Also