浏览我们的产品

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

下载  支持论坛 

文件详情

  • Downloads:
  • 2
  • File Size:
  • 38.41MB
  • Date Added:
  • 8/6/2022

描述

它包含 .NET 22.6 版本的 Aspose.Imaging。

文件详情

改进了矩形圆角的处理

在此 API 版本中,我们修复了在 EMF 文件中生成的矩形圆角问题。

string baseFolder = @"D:\";
string file = "result.png";
string outputFileName = Path.Combine(baseFolder, file);
EmfRecorderGraphics2D graphics = new EmfRecorderGraphics2D(
    new Rectangle(0, 0, 1000, 1000),
    new Size(1000, 1000),
    new Size(100, 100));

Pen pen = new Pen(Color.Red, 10);
graphics.DrawRectangle(pen, 10, 10, 80, 80);
pen.LineJoin = LineJoin.Miter;
pen.EndCap = LineCap.Flat;

using (EmfImage image = graphics.EndRecording())
{
    image.Save(outputFileName, new PngOptions());
}

更好地支持 CDR 和 DICOM 格式

此图像处理 API 版本修复了“CDR”文件处理异常以及开发人员无法读取“DICOM”图像的情况的错误。

var fileName = @"D:\file.cdr";
var outFileName = fileName + ".png";
using (Image image = Image.Load(fileName))
{
    image.Save(outFileName, new PngOptions());
}

DICOM 图像

using (var image = Image.Load("file.dcm") as DicomImage)
{
    var pngOptions = new PngOptions()
    {
        ColorType = Png.PngColorType.TruecolorWithAlpha,
        Progressive = true,
    };

    image.Save("file-page-0.png", pngOptions);
    image.Pages[57].Save("file-page-57.png", pngOptions);
}

对 GIF 多帧图像的对比度和 Gamma 支持

以前,AdjustContrastAdjustGamma 操作未正确应用于 GIF 多帧图像。两者都已在此版本中解决。

var path = @"D:\earth.gif";

var outputPath = @"D:\earth-contrast.gif";
using (var image = Image.Load(path) as RasterImage)
{
    image.AdjustContrast(40);
    image.Save(outputPath);
}

outputPath = @"D:\earth-gamma.gif";
using (var image = Image.Load(path) as RasterImage)
{
    image.AdjustGamma(3.5f);
    image.Save(outputPath);
}

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

 简体中文