PsdImage.AddVibranceAdjustmentLayer

PsdImage.AddVibranceAdjustmentLayer method

Menambahkan lapisan penyesuaian Vibrance.

public VibranceLayer AddVibranceAdjustmentLayer()

Nilai Pengembalian

Lapisan Vibrance yang baru dibuat.

Contoh

Contoh kode berikut menunjukkan dukungan lapisan VibranceLayer dan kemampuan untuk mengedit penyesuaian ini.

[C#]

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

using (PsdImage image = (PsdImage) Image.Load(sourceFileName))
{
    // Membuat VibranceLayer baru
    VibranceLayer vibranceLayer = image.AddVibranceAdjustmentLayer();
    vibranceLayer.Vibrance = 50;
    vibranceLayer.Saturation = 100;

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

Lihat juga