ColorBalanceAdjustmentLayer.PreserveLuminosity
ColorBalanceAdjustmentLayer.PreserveLuminosity property
एक मान प्राप्त करता है या सेट करता है जो दर्शाता है कि यहBlncResource
चमक बरकरार रखता है.
public bool PreserveLuminosity { get; set; }
संपत्ति मूल्य
सत्य
अगर यह चमक बरकरार रखता है; अन्यथा,असत्य
.
उदाहरण
निम्न कोड 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);
}