Aspose.Drawing for .NET is a .NET graphics API that provides the capability of 2D drawings identical to GDI+ in your .NET applications. The drawing engine supports rendering vector graphics (such as lines, curves, and figures) and text (in a variety of fonts, sizes, and styles) onto raster images in all commonly used graphics file formats. The project is based on managed .NET core and does not have dependencies on native code and libraries, with the rendering algorithms working the same way on all supported platforms.
Directory | Description |
---|---|
Examples | A collection of .NET examples that help you learn and explore the API features. |
- Create bitmaps from scratch or load existing files for editing.
- Draw lines, curves, splines and arcs.
- Process and draw graphics paths.
- Render text with different fonts and styles.
- Use different pen widths and styles.
- Supports Alpha blending and anti-aliasing lines and shapes.
- Use affine transformations.
- Work with clip regions
Raster: TIFF, BMP, PNG, JPEG, GIF
Are you ready to give Aspose.Drawing for .NET a try? Simply execute Install-Package Aspose.Drawing
from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.Drawing for .NET and want to upgrade the version, please execute Update-Package Aspose.Drawing
to get the latest version.
Bitmap bitmap = new Bitmap(1000, 800, System.Drawing.Imaging.PixelFormat.Format32bppPArgb);
Graphics graphics = Graphics.FromImage(bitmap);
graphics.Clear(Color.FromKnownColor(KnownColor.Gray));
Rectangle originalRentangle = new Rectangle(300, 300, 300, 200);
TransformPath(graphics, originalRentangle, (matrix) => matrix.Rotate(15.0f));
TransformPath(graphics, originalRentangle, (matrix) => matrix.Translate(-250, -250));
TransformPath(graphics, originalRentangle, (matrix) => matrix.Scale(0.3f, 0.3f));
bitmap.Save("output.png");
Home | Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License