浏览我们的产品

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

下载  支持论坛 

文件详情

  • Downloads:
  • 1
  • File Size:
  • 43.51MB
  • Date Added:
  • 4/8/2022

文件详情

实现了JPG保存的质量估计

通过 .NET C# 代码以编程方式配置“JPG”图像质量。

using (JpegImage image = (JpegImage)Image.Load("cat.jpg"))
{
    bool isNotDefaultQuality = image.JpegOptions.Quality != 75;
}

查看整个库中的错误信息

查看错误消息以使其正确且更有用。

try
{
    // invalid CDR with no pages
    using (var image = Image.Load("city-auto-skf_2.cdr"))
    {

    }
}
catch (Exception e)
{
    var correctMessage = "CDR document contains no pages.";
    if (e.InnerException.Message != correctMessage)
    {
        throw;
    }
}

WMZ 转换为 PNG 格式

将压缩的 Windows Media Player® WMZ 文件导出为 PNG 光栅格式。

using (var image = Image.Load("image.wmz"))
{
    var options = new PngOptions
    {
        VectorRasterizationOptions = new WmfRasterizationOptions()
        {
            PageHeight = image.Height,
            PageWidth = image.Width
        }
    };

    image.Save("result.png", options);
}

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

 简体中文