VibranceLayer.Vibrance
VibranceLayer.Vibrance property
Mendapat atau menyetel vibrance.
public int Vibrance { get; set; }
Nilai properti
Getarannya.
Pengecualian
pengecualian | kondisi |
---|---|
ArgumentOutOfRangeException | Vibrance harus berkisar dari -180 hingga +180 |
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
- class VibranceLayer
- ruang nama Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers
- perakitan Aspose.PSD