浏览我们的产品

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

下载  支持论坛 

文件详情

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

文件详情

Pen中独立的StartCap和EndCap

在 Pen 中实现了独立的 StartCap 和 EndCap,使您可以通过 API 在绘制线条的开头和结尾处更灵活地设置帽子样式。以下 C# 代码示例如何使用 API 绘制不同颜色的线条:

// 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 bluePen = new Pen(Color.Blue, 2);
graphics.DrawLine(bluePen, 100, 100, 900, 100);

Pen redPen = new Pen(Color.FromArgb(255, 255, 0, 0), 2);
graphics.DrawLine(redPen, 100, 200, 900, 200);

bitmap.Save("Colors.png");

添加标准线帽形状

添加了各种类型的标准line cap shapes,例如,平面、方形、圆形、三角形、DiamondAnchor、RoundAnchor、自定义等。

扩展的 TIFF 格式支持

此版本增强了对 TIFF(标记图像文件格式)光栅图形的支持。

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

 简体中文