浏览我们的产品

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.Drawing for .NET 22.1

下载  支持论坛 

文件详情

  • 下载:
  • 2
  • 文件大小:
  • 7.1 MB
  • Posted By:
  • 谢尔盖·弗拉索夫
  • 浏览量:
  • 15
  • 添加日期:
  • 1/28/2022

文件详情

Image.Tag 属性

添加了提供有关图像的附加数据的 Image.Tag 属性。

在保存为 PNG 时提高性能

性能已针对 PNG 渲染和保存进行了优化。以下 C# 代码使用 API 呈现 PNG:

// Example to create a new drawing in C# .NET and render as a PNG. 
// See https://github.com/aspose-drawing/Aspose.Drawing-for-.NET and https://docs.aspose.com/drawing/net/ for more examples.
// Create a new drawing
Bitmap bitmap = new Bitmap(1000, 800, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
Graphics graphics = Graphics.FromImage(bitmap);
// Save drawing
bitmap.Save(RunExamples.GetDataDir() + @"drawing.png");

改进的圆弧绘图

对 Arc 绘图进行了改进,以获得更准确的结果。以下 C# 代码演示了如何使用 API 绘制 Arc 并保存为 PNG:

// For complete examples and data files, please go to https://github.com/aspose-drawing/Aspose.Drawing-for-.NET

using System.Drawing;

Bitmap bitmap = new Bitmap(1000, 800, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
Graphics graphics = Graphics.FromImage(bitmap);

Pen pen = new Pen(Color.Blue, 2);
graphics.DrawArc(pen, 0, 0, 700, 700, 0, 180);

bitmap.Save("DrawArc.png");

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

 简体中文