.NET APIs for 2D Graphics Drawing

2D drawing engine identical to GDI+ for rendering vector graphics as well as multi-style text for .NET applications without any software dependencies.

  Download Free Trial
Aspose.Drawing for .NET

Aspose.Drawing for .NET

 
 

Aspose.Drawing for .NET is a cross-platform 2D drawing engine with System. Drawing compatible API. Drawing library supports rendering vector graphics such as lines, curves, and figures as well as text in a variety of fonts, sizes, and styles onto raster images. Images can be saved in some of the famous graphics formats including BMP, PNG, JPEG, GIF, and TIFF. Aspose.Drawing is a pure .NET library and does not rely on any external native rendering engine.

 

Advanced .NET Graphics API Features

 

 

Creating bitmaps from scratch or load existing files

 

Draw lines, curves, splines and arcs

 

Draw shapes like rectangle, polygon, eclipse, etc

 

Process and draw graphics paths

 

Render text with different fonts and styles

 

Use different pen widths and styles

 

Use solid and texture brushes

 

Supports Alpha blending and anti-aliasing lines and shapes

 

Work with clip regions

 

Use affine transformations

Draw Different Vector Graphics

Aspose.Drawing for .NET allows to draw different vector graphics such as arcs, Cardinal Spline, Bezier spline, ellipses, closed curves, lines and a number of other types. Only few lines of code needed to draw different types of vector graphics using the API. e.g here is code for drawing arc.

Drawing Arc - C#

Bitmap bitmap = new Bitmap(1000, 800, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
Graphics graphics = Graphics.FromImage(bitmap);
Pen pen = new Pen(Color.FromKnownColor(KnownColor.Blue), 2);
graphics.DrawArc(pen, 0, 0, 700, 700, 0, 180);
bitmap.Save(@"dirpath\LinesCurvesShapes\DrawArc_out.png");
 

Support and Learning Resources