PsdImage.AddBlackWhiteAdjustmentLayer

PsdImage.AddBlackWhiteAdjustmentLayer method

Menambahkan lapisan penyesuaian hitam putih.

public BlackWhiteAdjustmentLayer AddBlackWhiteAdjustmentLayer()

Nilai Pengembalian

Lapisan penyesuaian hitam putih yang dibuat.

Contoh

Contoh berikut menunjukkan bagaimana Anda dapat menambahkan lapisan penyesuaian hitam putih saat runtime di 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());
}

Lihat juga