浏览我们的产品

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.Imaging for .NET 22.4

下载  支持论坛 

文件详情

  • 下载:
  • 0
  • 文件大小:
  • 38.3 MB
  • Posted By:
  • samer.el-khatib4aspose
  • 浏览量:
  • 2
  • 添加日期:
  • : 11 hours ago [4/11/2022]

文件详情

将纹理画笔导出为矢量化 PSD

能够通过 API 将纹理画笔导出为矢量化 Adobe Photoshop® PSD 格式。

CdrRasterizationOptions rasterizationOptions = new CdrRasterizationOptions();
PsdVectorizationOptions psdVectorizationOptions = new PsdVectorizationOptions()
{
    VectorDataCompositionMode = VectorDataCompositionMode.SeparateLayers
};
PsdOptions psdOptions = new PsdOptions()
{
    VectorRasterizationOptions = rasterizationOptions,
    VectorizationOptions = psdVectorizationOptions
};

string inputFileName = "brushes.cdr";
string outputFileName = "brushes.cdr.psd";

using (Image image = Image.Load(inputFileName))
{
    psdOptions.VectorRasterizationOptions.PageWidth = image.Width;
    psdOptions.VectorRasterizationOptions.PageHeight = image.Height;

    image.Save(outputFileName, psdOptions);
}

改进重采样质量透明度,重采样 = 颜色强度

此版本的图像处理 API 通过透明度处理和边框颜色强度显着提高了重采样质量。

List<ResizeType> resizeTypes = new List<ResizeType>()
                                    {
                                        ResizeType.NearestNeighbourResample,
                                        ResizeType.AdaptiveResample,
                                        ResizeType.Bell,
                                        ResizeType.BilinearResample,
                                        ResizeType.CatmullRom,
                                        ResizeType.CubicBSpline,
                                        ResizeType.CubicConvolution,
                                        ResizeType.HighQualityResample,
                                        ResizeType.LanczosResample
                                    };
                                    
foreach (ResizeType resizeType in resizeTypes)
{
    using (Image image = Image.Load("square-499.png"))
    {
        image.Resize(400, 400, resizeType);
        image.Save("square-499" + resizeType + ".png");
    }
}

改进了 SVG TSPAN 元素的处理

以前,在某些情况下,SVG TSPAN 元素的对齐存在问题。现在,这些问题已通过改进 API 中的 SVG TSPAN 元素处理得到解决。

const string baseFolder = @"D:\";
const string fileName = "w3c_tspan02.svg";
var inputFileName = Path.Combine(baseFolder, fileName);
var outFileName = inputFileName + ".png";
using (Image image = Image.Load(inputFileName))
{
    image.Save(outFileName, new PngOptions());
}

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

 简体中文