浏览我们的产品

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.5

下载  支持论坛 

文件详情

  • 下载:
  • 3
  • 文件大小:
  • 25.3 MB
  • 添加日期:
  • : 2 weeks ago [5/4/2022]

文件详情

改进投影效果中的不透明度

在这个版本的 API 中,DropShadowEffect 的 opacity 属性得到了改进。以下 C# 代码示例演示了如何通过 API 指定两个单独的 PNG 图像的不透明度:

string inputFile = "input.psd";
string outputImage20 = "outputImage20.png";
string outputImage200 = "outputImage200.png";

using (PsdImage psdImage = (PsdImage)Image.Load(inputFile, new LoadOptions()))
{
    Layer workLayer = psdImage.Layers[1];

    DropShadowEffect dropShadowEffect = workLayer.BlendingOptions.AddDropShadow();
    dropShadowEffect.Distance = 0;
    dropShadowEffect.Size = 8;

    // Example with Opacity = 20
    dropShadowEffect.Opacity = 20;
    psdImage.Save(outputImage20, new PngOptions());

    // Example with Opacity = 200
    dropShadowEffect.Opacity = 200;
    psdImage.Save(outputImage200, new PngOptions());
}

新的 EffectType 属性

一个新的 EffectType 属性已添加到 ILayerEffect 接口。

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

 简体中文