PsdImage.AddBlackWhiteAdjustmentLayer
PsdImage.AddBlackWhiteAdjustmentLayer method
Lägger till det svartvita justeringslagret.
public BlackWhiteAdjustmentLayer AddBlackWhiteAdjustmentLayer()
Returvärde
Det skapade svartvita justeringslagret.
Exempel
Följande exempel visar hur du kan lägga till det svartvita justeringslagret vid körning i 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());
}
Se även
- class BlackWhiteAdjustmentLayer
- class PsdImage
- namnutrymme Aspose.PSD.FileFormats.Psd
- hopsättning Aspose.PSD