ColorBalanceAdjustmentLayer.MidtonesCyanRedBalance
ColorBalanceAdjustmentLayer.MidtonesCyanRedBalance property
Krijgt of stelt de Middentonen Cyaan Rood Balans in.
public short MidtonesCyanRedBalance { get; set; }
Eigendoms-waarde
De middentonen cyaan rood balans.
Uitzonderingen
uitzondering | voorwaarde |
---|---|
ArgumentOutOfRangeException | Middentonen Cyaan Rood Balans moet tussen -100 en +100 liggen. |
Voorbeelden
De volgende code demonstreert ondersteuning voor de 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);
}
Zie ook
- class ColorBalanceAdjustmentLayer
- naamruimte Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers
- montage Aspose.PSD