PsdImage.AddBlackWhiteAdjustmentLayer
PsdImage.AddBlackWhiteAdjustmentLayer method
白黒調整レイヤーを追加します。
public BlackWhiteAdjustmentLayer AddBlackWhiteAdjustmentLayer()
戻り値
作成した白黒調整レイヤー。
例
次の例は、実行時に 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());
}
関連項目
- class BlackWhiteAdjustmentLayer
- class PsdImage
- 名前空間 Aspose.PSD.FileFormats.Psd
- 組み立て Aspose.PSD