浏览我们的产品

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

 

Aspose.PSD for .NET 22.2

下载  支持论坛 

文件详情

  • 下载:
  • 13
  • 文件大小:
  • 25.1 MB
  • Posted By:
  • Yaroslav.Lisovskyi
  • 浏览量:
  • 22
  • 添加日期:
  • 2/1/2022

文件详情

支持 .NET 6 框架

向 API 添加了对 .NET 6 Framework 的支持。

Vibrance 调整图层支持

添加了支持以使用 API 设置自然饱和度调整层。

string sourceFileName = "WithoutVibrance.psd";
string outputFileNamePsd = "out_VibranceLayer.psd";
string outputFileNamePng = "out_VibranceLayer.png";

using (PsdImage image = (PsdImage) Image.Load(sourceFileName))
{
    // Creating a new VibranceLayer
    VibranceLayer vibranceLayer = image.AddVibranceAdjustmentLayer();
    vibranceLayer.Vibrance = 50;
    vibranceLayer.Saturation = 100;

    image.Save(outputFileNamePsd);
    image.Save(outputFileNamePng, new PngOptions());
}

通过 API 在 PSD 中配置 Vibrance

API 中添加了一个“vibAResource”类,允许您配置、获取和设置任何 Photoshop® PSD 文件的各种与活力相关的属性。以下 C# 代码示例通过 API 设置鲜艳度和饱和度属性:

string sourceFileName = "VibranceResource.psd";
string outputFileName = "out_VibranceResource.psd";

using (PsdImage image = (PsdImage)Image.Load(sourceFileName))
{
    foreach (var layer in image.Layers)
    {
        foreach (var resource in layer.Resources)
        {
            if (resource is VibAResource)
            {
                var vibranceResource = (VibAResource)resource;

                int vibranceValue =  vibranceResource.Vibrance;
                int saturationValue = vibranceResource.Saturation;

                vibranceResource.Vibrance = vibranceValue * 2;
                vibranceResource.Saturation = saturationValue * 2;

                break;
            }
        }
    }

    image.Save(outputFileName);
}

有关此版本中的功能、增强功能和错误修复的完整列表,请访问 Aspose.PSD for .NET 22.2 - Release Notes

 简体中文