Independent StartCap and EndCap in Pen
Implemented independent StartCap and EndCap in Pen which enables you to have more flexibility in cap styles at the beginning and end of drawn lines via API. The following C# code samples how to draw lines of different colors using API:
// For complete examples and data files, please go to https://github.com/aspose-drawing/Aspose.Drawing-for-.NET
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);
Added Standard Line Cap Shapes
Added various types of standard line cap shapes, such as, flat, square, round, triangle, DiamondAnchor, RoundAnchor, Custom, etc.
TIFF Format Support
This release has enhanced support for the TIFF (Tagged Image File Format) raster graphics.
For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.Drawing for .NET 22.2 Release Notes.