Aspose.Drawing
22.3.0
See the version list below for details.
dotnet add package Aspose.Drawing --version 22.3.0
NuGet\Install-Package Aspose.Drawing -Version 22.3.0
<PackageReference Include="Aspose.Drawing" Version="22.3.0" />
paket add Aspose.Drawing --version 22.3.0
#r "nuget: Aspose.Drawing, 22.3.0"
// Install Aspose.Drawing as a Cake Addin #addin nuget:?package=Aspose.Drawing&version=22.3.0 // Install Aspose.Drawing as a Cake Tool #tool nuget:?package=Aspose.Drawing&version=22.3.0
Handle Generic Typography via .NET Drawing API
Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License
Aspose.Drawing for .NET is a cross-platform 2D drawing engine with System.Drawing compatible API.
Our 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 represented by an array of pixels in memory. Images can be saved in some of the popularly used graphics file formats (BMP, PNG, JPEG, GIF, TIFF).
Aspose.Drawing for .NET is a 2D graphics library with System.Drawing compatible API. It allows your cross-platform .NET Apps to render vector graphics such as lines, curves, and figures as well as text onto raster images.
Aspose.Drawing is a pure .NET library that does not rely on any external native rendering engine. It allows running your existing C# and VB Apps on various supported platforms having identical rendering results.
Aspose.Drawing for .NET can be used in .NET Framework, .NET Core or Xamarin applications in Windows, Linux, Android, Azure Functions or Blazor WebAssembly. It can be safely run from any restricted environment such as Windows or ASP.NET service.
With Aspose.Drawing you can create bitmaps from scratch or load from existing files; draw lines, Bézier curves, splines, arcs, rectangles, polygons, eclipses, etc.; work with graphics paths; render text with different fonts and styles. It allows using different pen widths and styles; solid, texture, gradient and hatch brushes; clipping regions and matrix transformations. Images are stored in memory as managed arrays of pixels and can be saved in various image formats including BMP, PNG, JPEG, GIF, and TIFF.
Graphic File Processing Features
- Creating bitmaps from scratch or loading from files.
- Drawing lines, Bézier curves, splines, and arcs.
- Drawing shapes such as rectangle, polygon, eclipse, etc.
- Processing and drawing graphics paths.
- Rendering text with different fonts and styles.
- Using different pen widths and styles.
- Using solid and texture brushes.
- Alpha blending and anti-aliasing lines and shapes.
- Working with clip regions.
- Using affine transformations.
What's new in v22.3.0
Set Negative Pen.Width
Sometimes even Pen Width of 1 is too wide for some laser printers. A quick fix for such scenarios is setting the pen width to negative. From this release it is allowed to set the value of Pen.Width
to negative. The following C# code sample demonstrates how to set various widths to Pen using 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);
for (int i = 1; i < 8; ++i)
{
Pen pen = new Pen(Color.Blue, i);
graphics.DrawLine(pen, 100, i * 100, 900, i * 100);
}
bitmap.Save("Width.png");
IsGenericTypographic
StringFormat
Property
Added the copyable IsGenericTypographic StringFormat property to handle the Typography via API in a better way.
Rorate & Flip 24-bit Bitmap (BMP)
Added the functionality to rotate and flip 24-bit bitmap BMP graphics.
For a complete list of features, enhancements, and bug fixes in this release please visit, Aspose.Drawing for .NET 22.3 Release Notes.
Supported Read & Write Drawing Formats
BMP, PNG, JPEG, GIF, TIFF
Platform Independence
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.
Aspose.Drawing for .NET supports any 32-bit or 64-bit operating system where .NET Framework or .NET Core is installed including, but not limited to:
- Microsoft Windows desktop (XP, Vista, 7, 8, 10) and server operating systems (2003, 2008, 2012, 2016, 2019)
- Windows Azure
It also supports .NET Framework version 2.0 and .NET Core 2.0 or later. You can use Aspose.Drawing for .NET to develop applications in any development environment that targets the .NET platform. However, Microsoft Visual Studio 2012, 2013, 2015, 2017, 2019 are explicitly supported.
Get Started
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.
Create New Bitmap using C# Code
You can execute the below code snippet to see how Aspose.Drawing API performs in your own environment or check the GitHub Repository for other common usage scenarios.
// 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 pen = new Pen(Color.FromKnownColor(KnownColor.Blue), 2);
graphics.DrawArc(pen, 0, 0, 700, 700, 0, 180);
bitmap.Save(RunExamples.GetDataDir() + @"LinesCurvesShapes\DrawArc_out.png");
Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net20 is compatible. net35 was computed. net40 was computed. net403 was computed. net45 was computed. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 2.0
- No dependencies.
-
.NETStandard 2.0
- No dependencies.
NuGet packages (11)
Showing the top 5 NuGet packages that depend on Aspose.Drawing:
Package | Downloads |
---|---|
Aspose.Tasks
Aspose.Tasks for .NET is a collection of classes that seamlessly integrates with your .NET applications to provide interaction and manipulation capabilities for the Microsoft ProjectⓇ file formats (MPP, MPT, MPX) as well as PrimaveraⓇ formats (XER, P6XML). Aspose.Tasks for .NET helps developers to create project management Apps in .NET that can work with Microsoft ProjectⓇ formulas, project calendars, calendar exceptions, tasks, task links, task baselines, resources, resource assignments, currencies, as well as fetching VBA information from an MPP file. You can also convert MS ProjectⓇ files to PDF, JPEG, Excel, SVG, HTML, CSV, BMP and many other formats. Aspose.Tasks for .NET supports any 32-bit or 64-bit OS where .NET or Mono framework is installed, including MS Windows, Linux, and macOS. Aspose.Tasks for .NET classes are packaged into a single DLL which removes your App dependency for any additional 3rd party components or software to be installed in order to work with the Microsoft ProjectⓇ or PrimaveraⓇ files. |
|
Aspose.PSD
Aspose.PSD for .NET provides extensive manipulation capabilities for PSD and PSB file formats without requiring Adobe Photoshop and entry-level export capabilities for AI files without requiring Adobe Illustrator. It supports export to the following formats: Png, Jpeg, Jpeg2000, Gif, Bmp, Tiff, PSD, and PSB along with export to Pdf with selectable text. Aspose.PSD partially supports Adjustment Layers, Smart Objects, Text Layer, Fill Layers, Shape Layers, Group Layers, Layers Effects, and Editing of Raster and Vector Masks for layers. New features are added every month, keeping backward compatibility as one of the product’s priorities. |
|
GroupDocs.Merger
GroupDocs.Merger for .NET allows you to merge documents and manipulate document structure across most of famous document types. Merge several documents into one, split single document to multiple documents, reorder or replace document pages, change page orientation and perform other manipulations with GroupDocs.Merger for .NET API. For more details on the GroupDocs.Merger for .NET API, please visit product website at: https://products.groupdocs.com/merger/net |
|
Aspose.Total
Aspose.Total for .NET is the most complete package of all .NET file format APIs offered by Aspose. It empowers developers to create, edit, render, print and convert between a wide range of popular document formats within any .NET, C#, ASP.NET and VB.NET applications. |
|
GroupDocs.Conversion.CrossPlatform
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
24.11.0 | 477 | 11/11/2024 |
24.10.0 | 5,103 | 10/10/2024 |
24.9.0 | 5,112 | 9/6/2024 |
24.8.0 | 4,390 | 8/10/2024 |
24.7.0 | 3,247 | 7/12/2024 |
24.6.0 | 5,922 | 6/18/2024 |
24.5.0 | 7,980 | 5/9/2024 |
24.4.0 | 10,326 | 4/10/2024 |
24.3.0 | 11,049 | 3/8/2024 |
24.2.0 | 8,997 | 2/10/2024 |
24.1.0 | 20,796 | 1/10/2024 |
23.12.0 | 24,103 | 12/10/2023 |
23.11.0 | 9,151 | 11/9/2023 |
23.10.0 | 3,891 | 10/9/2023 |
23.9.0 | 4,726 | 9/8/2023 |
23.8.1 | 5,980 | 8/10/2023 |
23.7.0 | 21,402 | 7/7/2023 |
23.6.0 | 9,723 | 6/9/2023 |
23.5.0 | 109,246 | 5/5/2023 |
23.4.0 | 6,470 | 4/7/2023 |
23.3.0 | 7,007 | 3/14/2023 |
23.2.0 | 6,523 | 2/20/2023 |
23.1.0 | 14,129 | 1/27/2023 |
22.12.0 | 42,081 | 12/29/2022 |
22.11.0 | 7,458 | 11/29/2022 |
22.10.0 | 20,934 | 10/18/2022 |
22.9.0 | 17,330 | 9/27/2022 |
22.8.0 | 17,154 | 8/22/2022 |
22.7.0 | 5,913 | 7/14/2022 |
22.6.0 | 9,985 | 6/17/2022 |
22.5.0 | 7,211 | 5/20/2022 |
22.4.0 | 9,829 | 4/22/2022 |
22.3.0 | 13,235 | 3/24/2022 |
22.2.0 | 7,211 | 2/18/2022 |
22.1.0 | 5,843 | 1/28/2022 |
21.12.0 | 16,166 | 12/30/2021 |
21.11.0 | 8,825 | 11/20/2021 |
21.10.0 | 6,585 | 10/15/2021 |
21.9.0 | 10,334 | 9/16/2021 |
21.8.0 | 10,369 | 8/17/2021 |
21.7.0 | 8,278 | 7/16/2021 |
21.6.0 | 7,214 | 6/18/2021 |
21.5.0 | 9,453 | 5/18/2021 |
21.4.0 | 9,312 | 4/26/2021 |
21.3.0 | 6,583 | 3/26/2021 |
21.2.0 | 11,836 | 2/26/2021 |
21.1.0 | 2,454 | 2/1/2021 |
20.12.0 | 2,356 | 12/29/2020 |
20.11.0 | 5,769 | 11/30/2020 |
20.10.0 | 6,417 | 10/27/2020 |
20.9.0 | 2,340 | 10/1/2020 |
20.8.0 | 1,523 | 8/26/2020 |
20.7.0 | 3,214 | 7/22/2020 |
20.6.1 | 2,032 | 6/24/2020 |
20.6.0 | 1,498 | 6/24/2020 |