BlackWhiteAdjustmentLayer.Blues
BlackWhiteAdjustmentLayer.Blues property
Obtient ou définit la valeur de blues.
public int Blues { get; set; }
Valeur de la propriété
La valeur du blues.
Exemples
L’exemple suivant montre comment vous pouvez ajouter le calque de réglage noir blanc lors de l’exécution dans 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());
}
L’exemple suivant montre comment vous pouvez manipuler les propriétés du calque de réglage noir blanc dans Aspose.PSD
[C#]
sourceFileName = "BlackWhiteAdjustmentLayerStripesMask.psd";
outputFileName = "OutputBlackWhiteAdjustmentLayerStripesMask.psd";
using (PsdImage image = (PsdImage)Image.Load(sourceFileName))
{
var blwhLayer = (BlackWhiteAdjustmentLayer)image.Layers[1];
blwhLayer.Reds = 15;
blwhLayer.Yellows = 25;
blwhLayer.Greens = 35;
blwhLayer.Cyans = 10;
blwhLayer.Blues = 50;
blwhLayer.Magentas = 105;
blwhLayer.UseTint = true;
blwhLayer.BwPresetKind = 4;
blwhLayer.BlackAndWhitePresetFileName = "bwPresetFileName";
blwhLayer.TintColorRed = 60;
blwhLayer.TintColorGreen = 80;
blwhLayer.TintColorBlue = 200;
image.Save(outputFileName, new PsdOptions());
}
Voir également
- class BlackWhiteAdjustmentLayer
- espace de noms Aspose.PSD.FileFormats.Psd.Layers.AdjustmentLayers
- Assemblée Aspose.PSD