![]() |
VOOZH | about |
dotnet add package Aspose.Drawing.Common --version 26.6.0
NuGet\Install-Package Aspose.Drawing.Common -Version 26.6.0
<PackageReference Include="Aspose.Drawing.Common" Version="26.6.0" />
<PackageVersion Include="Aspose.Drawing.Common" Version="26.6.0" />Directory.Packages.props
<PackageReference Include="Aspose.Drawing.Common" />Project file
paket add Aspose.Drawing.Common --version 26.6.0
#r "nuget: Aspose.Drawing.Common, 26.6.0"
#:package Aspose.Drawing.Common@26.6.0
#addin nuget:?package=Aspose.Drawing.Common&version=26.6.0Install as a Cake Addin
#tool nuget:?package=Aspose.Drawing.Common&version=26.6.0Install as a Cake Tool
π Version 26.6.0
π NuGet
π .NET
π Docs
π API Ref
π Examples
π Blog
π Releases
π Support
π License
Aspose.Drawing
- A cross-platform 2D graphics library for .NET that serves as a direct replacement for
System.Drawing.Common. It allows seamless migration without requiring any code changes.- If you're interested in seamless migration from
System.Drawing.Common., use Aspose.Drawing.
Aspose.Drawing.Common
- Uses the
Aspose.Drawingnamespace and allows side-by-side use withSystem.Drawing.Common. Ideal for projects that need a gradual migration while maintaining compatibility.- If you need side-by-side compatibility with
System.Drawing.Common, use Aspose.Drawing.Common.
Aspose.Drawing for .NET is a high-performance, cross-platform 2D graphics API designed for .NET developers. It offers seamless migration from System.Drawing.Common and provides extensive drawing features for lines, shapes, arcs, polygons, and text. Supporting a wide range of platforms, including Windows, Linux, macOS, Azure, and Blazor WebAssembly, Aspose.Drawing ensures consistent rendering results without relying on third-party libraries. With its support for bitmap creation, vector graphics, transformations, text rendering, and anti-aliasing, it is ideal for developers seeking high-quality, multi-platform drawing capabilities in C#.
Aspose.Drawing.Common library allows developers to draw bitmap images, geometric shapes, and apply graphic transformations. It does not depend on any third-party native libraries, ensuring consistent rendering results across all supported platformsβ. Aspose.Drawing.Common is known for its cross-platform compatibility, allowing it to be used on various platforms such as Windows, MacOS, Linux, Azure, ASP.NET Core, Blazor WebAssembly, and .NET MAUI applications on Android and iOSβ.
The Aspose.Drawing.Common package uses the Aspose.Drawing namespace, which allows it to be used side-by-side with System.Drawing.Common without conflicts. This makes it a suitable option for projects that need gradual transition from System.Drawing.Common while maintaining compatibility.
Cross-Platform Graphics Library
Aspose.Drawing for .NET provides a contemporary cross-platform graphic drawing library that offers advanced features and functionality.
Consistent Rendering
Ensures consistent rendering results across all supported platforms without the need for third-party libraries.
Seamless Migration
Seamlessly replace System.Drawing.Common by updating project references from System to Aspose.
Full Compatibility
Fully compatible with .NET Core 3.1, .NET 6, .NET 7, and Xamarin, supporting cross-platform development for Windows, Linux, Android, and Blazor WebAssembly.
Extensive 2D Drawing Features
Supports drawing lines, shapes, splines, arcs, polygons, and text with anti-aliasing, strikeout, and underline rendering options.
High-Quality Rendering
Provides high-quality text rendering with anti-aliasing and hinting, making fonts look smooth on any display.
Supported Platforms
Aspose.Drawing works across platforms such as Windows, macOS, Linux, Azure, and Blazor WebAssembly, ensuring consistent performance.
Installation via NuGet
Installable through the NuGet package manager for Visual Studio for easy integration.
Rendering Capabilities
Offers consistent results in rendering vector graphics and raster images across all platforms.
Geometric Drawing API
Draw lines, shapes, rectangles, polygons, arcs, and Bezier curves with a cross-platform C# API.
Transformations Support
Apply different transformations to 2D objects and save results as raster or vector images.
Multi-Platform Consistency
Ensure consistent drawing quality across Windows, Linux, Azure, ASP.NET, and more.
New Bitmap Creation
Create a new image from scratch using Aspose.Drawing with support for drawing arcs, curves, and lines.
Load Existing Images
Load and edit images from file and save them back to disk using the API.
Drawing Tools
Utilize pens and brushes to create a variety of shapes and images.
Draw Arc
Draw arcs by specifying starting points, angles, and dimensions on a bitmap.
Draw Bezier Spline
Draw Bezier curves using control points to define the curve direction.
Draw Lines and Shapes
Create and manipulate lines, rectangles, ellipses, and polygons using the Graphics and Pen objects.
Set Pen Width
Define the width of lines when drawing with pens.
Set Pen Color
Customize pen colors for drawing lines and shapes on a bitmap.
Join Lines
Join multiple lines to create complex paths and shapes.
Cross-Platform Support
Fully supports .NET 6 for cross-platform graphics rendering, with consistent performance across Windows, Linux, and macOS.
Azure Function Compatibility
Use Aspose.Drawing in serverless Azure Functions for graphics manipulation.
Blazor WebAssembly Integration
Integrates seamlessly with Blazor WebAssembly for client-side rendering and drawing.
Solid Brushes
Fill shapes with solid colors using the SolidBrush class.
Gradient Brushes
Use linear and path gradient brushes to create complex color patterns.
Texture Brushes
Apply textures to shapes for enhanced graphical effects.
Antialiasing for Images
Enable antialiasing to smooth edges and enhance image quality during rendering.
Clipping Path
Use the SetClip method to define clip paths for rendering parts of an image.
Alpha Blending
Blend images with backgrounds using alpha channels for transparency.
Global Transformation
Apply global transformations like rotation and translation to the entire graphic object.
Matrix Transformation
Use matrix transformations to rotate, scale, and skew individual shapes within an image.
Units of Measure
Customize units of measure (pixels, points, inches) for precise image rendering.
Draw Text
Use the DrawString method to render text on images with different fonts and styles.
Text Formatting
Format text alignment, line spacing, and font properties for precise rendering.
Text Hinting
Apply text hinting to enhance readability and ensure smooth font edges.
| Format | Description | Load | Save |
|---|---|---|---|
| BMP | Bitmap Image Format | βοΈ | βοΈ |
| PNG | Portable Network Graphics | βοΈ | βοΈ |
| JPEG | Joint Photographic Experts Group | βοΈ | βοΈ |
| GIF | Graphics Interchange Format | βοΈ | βοΈ |
| TIFF | Tagged Image File Format | βοΈ | βοΈ |
Aspose.Drawing for .NET supports 32-bit and 64-bit systems, including:
Install-Package Aspose.Drawing to install the latest version.Update-Package Aspose.Drawing. You can add -prerelease to get hotfixes.This example shows how to create a bitmap, draw an arc, and save the image in C# using Aspose.Drawing for .NET.
// Create a bitmap object
using (var bitmap = new Bitmap(1000, 800))
{
// Initialize a Graphics object with the bitmap
using (var graphics = Graphics.FromImage(bitmap))
{
// Define a pen with color and width
using (var pen = new Pen(Color.Blue, 2))
{
// Draw an arc on the bitmap
graphics.DrawArc(pen, new Rectangle(0, 0, 700, 700), 0, 180);
// Save the image as PNG
bitmap.Save("output_arc.png");
}
}
}
Demonstrates how to render anti-aliased text inside a clipped ellipse area using Aspose.Drawing for .NET.
// Create a bitmap object
using (var bitmap = new Bitmap(1000, 800))
{
// Initialize a Graphics object with anti-aliasing
using (var graphics = Graphics.FromImage(bitmap))
{
graphics.TextRenderingHint = TextRenderingHint.AntiAliasGridFit;
// Create a GraphicsPath representing an ellipse
var path = new GraphicsPath();
path.AddEllipse(new Rectangle(200, 200, 400, 200));
// Clip the text inside the ellipse
graphics.SetClip(path);
// Define font, brush, and format for the text
var font = new Font("Arial", 20);
var brush = new SolidBrush(Color.Black);
var format = new StringFormat { Alignment = StringAlignment.Center };
// Draw the string within the clipped ellipse
graphics.DrawString("Hello World!", font, brush, new RectangleF(200, 200, 400, 200), format);
// Save the image
bitmap.Save("output_text.png");
}
}
This snippet demonstrates drawing a Bezier spline using the DrawBezier method in Aspose.Drawing for .NET.
// Create a bitmap object
using (var bitmap = new Bitmap(1000, 800))
{
// Initialize a Graphics object
using (var graphics = Graphics.FromImage(bitmap))
{
// Define a pen for drawing
using (var pen = new Pen(Color.Blue, 2))
{
// Define control points for Bezier curve
Point pt1 = new Point(100, 100);
Point pt2 = new Point(200, 10);
Point pt3 = new Point(350, 400);
Point pt4 = new Point(500, 300);
// Draw the Bezier curve
graphics.DrawBezier(pen, pt1, pt2, pt3, pt4);
// Save the image
bitmap.Save("output_bezier.png");
}
}
}
π Docs
π API Ref
π Examples
π Blog
π Releases
π Support
π License
Cross-Platform 2D Graphics Library | System.Drawing.Common Replacement | Cross-Platform Drawing API | Geometric Drawing API | 2D Drawing in C# | Create Bitmap in C# | Aspose.Drawing for .NET | Working with Vector Graphics | Using Pens in C# | Drawing with Brushes | Image Rendering | Coordinate System Transformations | Text and Fonts in C# | Aspose.Drawing in .NET 6 | Aspose.Drawing in Azure | Blazor WebAssembly | Bitmap Image Creation | Rendering Vector Graphics | NuGet Package | Graphics API for .NET | Pen and Brush Usage | Text Rendering in C# | Drawing Arc in C# | Bezier Spline in C# | Text with Anti-Aliasing | Image Rendering with Clipping | Create Bitmap from Scratch | High-Quality Text Rendering | Azure Function Compatibility
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 netcoreapp2.0 was computed. netcoreapp2.1 netcoreapp2.1 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 netstandard2.0 is compatible. netstandard2.1 netstandard2.1 was computed. |
| .NET Framework | net40 net40 is compatible. net403 net403 was computed. net45 net45 was computed. net451 net451 was computed. net452 net452 was computed. net46 net46 was computed. net461 net461 was computed. net462 net462 was computed. net463 net463 was computed. net47 net47 was computed. net471 net471 was computed. net472 net472 was computed. net48 net48 was computed. net481 net481 was computed. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen40 tizen40 was computed. tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
Showing the top 5 NuGet packages that depend on Aspose.Drawing.Common:
| Package | Downloads |
|---|---|
|
Aspose.BarCode
Aspose.BarCode for .NET is a robust and reliable barcode generation and recognition component, written in managed C#, it allows developers to quickly and easily add barcode generation and recognition functionality to their Microsoft .NET applications (WinForms, WPF and .NET Core). Aspose.BarCode for .NET supports most established barcode standards and barcode specifications. It has the ability to export to multiple image formats including: BMP, GIF, JPEG, PNG, TIFF, EMF and SVG. |
|
|
GroupDocs.Viewer
GroupDocs.Viewer for .NET is a powerful document viewer API that supports over 170 file types and enables .NET developers to easily render files to various formats, such as PDF, HTML, JPG, or PNG. With this API, you can seamlessly render a wide range of file types, including popular OpenDocument and Microsoft Office formats like DOCS, XLSX, and PPTX, as well as specialized CAD and graphic editor files like DWG, DXF, PSD, AI, and CDR. |
|
|
Aspose.Diagram
Aspose.Diagram for .NET API is a solution for Microsoft Visio file manipulation requirements Platform Independence You can use Aspose.Diagram for .NET to build any type of a 32-bit or 64-bit .NET application including ASP.NET, WCF, WinForms, UWP, .NET Standard, .NET Core etc. You can also use Aspose.Diagram for .NET to build applications with Mono. |
|
|
GroupDocs.Conversion
This is a cross-platform version of GroupDocs.Conversion for .NET. GroupDocs.Conversion for .NET is a powerful and intuitive library used for documents conversion. Convert DOC to PDF, PDF to DOC, XLS to DOC, PPT to PDF and any other popular file formats with simple, intuitive and flexible API. For more details on the GroupDocs.Conversion for .NET API, please visit product website at: https://products.groupdocs.com/conversion/net Note: The library will run in evaluation mode. In order to test full features of the product, please request a free 30-day temporary license. |
|
|
GroupDocs.Parser
GroupDocs.Parser for .NET is a useful parsing class library which allows to extract different data from documents of various formats. The data extraction API supports PDF, DOC, DOCX, PPT, PPTX, XLS, XLSX and many more formats. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 26.6.0 | 677 | 6/9/2026 |
| 26.5.0 | 1,843 | 5/14/2026 |
| 26.4.0 | 22,303 | 4/10/2026 |
| 26.3.0 | 4,179 | 3/11/2026 |
| 26.2.0 | 7,936 | 2/9/2026 |
| 26.1.0 | 6,150 | 1/12/2026 |
| 25.12.0 | 11,524 | 12/8/2025 |
| 25.11.0 | 90,219 | 11/27/2025 |
| 25.10.0 | 17,227 | 10/9/2025 |
| 25.9.0 | 94,192 | 9/8/2025 |
| 25.8.0 | 10,037 | 8/8/2025 |
| 25.7.0 | 369,096 | 7/9/2025 |
| 25.6.0 | 22,051 | 6/9/2025 |
| 25.5.0 | 43,604 | 5/6/2025 |
| 25.4.0 | 19,169 | 4/10/2025 |
| 25.3.0 | 45,973 | 3/7/2025 |
| 25.2.0 | 103,916 | 2/7/2025 |
| 25.1.0 | 169,592 | 1/10/2025 |
| 24.12.0 | 516,869 | 12/9/2024 |
| 24.11.0 | 35,086 | 11/11/2024 |