BlackWhiteAdjustmentLayer.Magentas
BlackWhiteAdjustmentLayer.Magentas property
मैजेंटा मान प्राप्त या सेट करता है।
public int Magentas { get; set; }
संपत्ति मूल्य
मैजेंटा मान.
उदाहरण
निम्न उदाहरण दर्शाता है कि आप 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());
}
निम्नलिखित उदाहरण दर्शाता है कि आप 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());
}