浏览我们的产品 Toggle navigation
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.
If you experience errors, when you try to download a file, make sure your network policies (enforced by your company or ISP) allow downloading ZIP and/or MSI files.
在这个版本的 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 接口。
ILayerEffect
有关此版本中的功能、增强和错误修复的完整列表,请访问 Aspose.PSD for .NET 22.5 - Release Notes。