System.Drawing.Common 9.0.2
System.Drawing.Common
The System.Drawing.Common package allows .NET Core and .NET 6+ applications to access GDI+ graphics functionality.
This package is especially useful for porting .NET Framework applications that rely on the System.Drawing namespace.
Getting Started
To get started with System.Drawing.Common, install it using the NuGet Package Manager, the .NET CLI, or by editing your project file directly.
NOTE: If you are developing a WinForms application, you do not need to install the System.Drawing.Common package separately (to this end, you use the Sdk attribute for the Project element like <Project Sdk="Microsoft.NET.Sdk"> in the .csproj or the .vbproj file and then specify <UseWindowsForms>true</UseWindowsForms>). This package is then automatically included as part of the .NET SDK for WinForms Apps, which means you can start using the System.Drawing namespace right away in your WinForms projects.
Usage
The following examples demonstrate some basic tasks you can accomplish with System.Drawing.Common.
Create a Simple Bitmap and Save it
C#
using System.Drawing;
class Program
{
static void Main()
{
using (Bitmap bitmap = new Bitmap(100, 100))
{
using (Graphics g = Graphics.FromImage(bitmap))
{
g.Clear(Color.Red);
}
bitmap.Save("output.bmp");
}
}
}
VB
Imports System.Drawing
Module Program
Sub Main()
Using bitmap As New Bitmap(100, 100)
Using g As Graphics = Graphics.FromImage(bitmap)
g.Clear(Color.Red)
End Using
bitmap.Save("output.bmp")
End Using
End Sub
End Module
Additional Documentation
For more in-depth tutorials and API references, you can check the following resources:
- NuGet Gallery | System.Drawing.Common
- System.Drawing.Common Namespace | Microsoft Docs
- Drawing with System.Drawing.Common | Microsoft Learn
Feedback
- Open an issue on the GitHub repository
- Reach out on Twitter with the hashtag #winforms
- Join our Discord channel: dotnet/Discord
Showing the top 20 packages that depend on System.Drawing.Common.
| Packages | Downloads |
|---|---|
|
EPPlus.System.Drawing
Package Description
|
25 |
|
EPPlus.System.Drawing
Package Description
|
51 |
|
FreeSpire.Doc
Free Spire.Doc for .NET is a professional and reliable word component for commercial and personal use. It enables developers to quickly and easily generate, read, write, save, print and convert documents on any .NET applications (ASP.NET, WinForms and Web Service, .NET Core) and it supports in C#, VB.NET. The featured function, conversion allows converting Word documents (Word 97-2003, Word 2007, Word 2010, Word 2013) to commonly used file format, format, such as XML, RTF, TXT, PDF, XPS, EPUB, HTML and Image etc.
Free Spire.Doc for.NET is 100% FREE word component.
Free Spire.Doc for .NET Features:
*No Microsoft Word Automation
*Speed and Easy-to-Use
*Batch of Great Functions
*High Performance
*Totally Free
Main functions
High quality conversion
Rich Word Document Features
Process Pre-Existing Word Documents
Other Technical Features
|
16 |
|
FreeSpire.PDF
As a standalone PDF component, Free Spire.PDF for .NET enables developers to create, write, edit, convert, print, handle and read PDF files on any .NET applications. You can implement rich capabilities to create PDF files from scratch or process existing PDF documents. Many rich features can be supported, such as security setting, PDF text/attachment/image extract, PDF merge/split, metadata update, section and paragraph optimizing, graph/image drawing and inserting, table creation and processing, and importing data etc.
Main Functions
Only Free Spire.PDF, No Adobe Acrobat installed.
Free Spire.PDF for .NET is a totally independent .NET PDF library. It Does NOT require Adobe Acrobat or any other 3rd party software/library installed on system.
High Quality PDF File Conversion
• Convert Webpage HTML, HTML ASPX to PDF
• Convert Image(Jpeg, Jpg, Png, Bmp, Tiff, Gif, EMF, Ico) to PDF
• Convert Text to PDF
• Convert RTF to PDF
• Convert PDF to Image
Easily Manipulate document and Form fields
• Merge/split PDF documents
• Overlay documents.
• Import and stamp feature
• Booklet feature
• Create and fill form field
Security features
• Protect PDF documents by setting passwords and digital signature.
• Decrypt PDF Document
• Get and Verify Digital Signature
• Modify PDF Passwords
Document Settings features
• Set custom metadata, document properties, page orientation, and page size.
• Set PDF position, title display, resize, page mode and print scaling etc.
Other Features
• PDF/A-1b and PDF/x1a:2001 Compliance, both standards can be applied.
• Extract images, text, pages and attachments from a PDF document
• Pen and brush to draw shape elements, text, images into PDF documents.
• Layers, transparent graphics, color space and barcode creation can render to PDF documents.
• Add scalar/vector images and mask and place them in designated location.
• Table and table style can be supported by Free Spire.PDF for .NET.
• Insert interactive elements inc
|
16 |
|
GemBox.Document
GemBox.Document is a .NET component that enables developers to read, write, convert and print document files (DOCX, DOC, PDF, HTML, XPS, RTF, TXT) from .NET applications in a simple and efficient way.
|
16 |
|
IronPdf
IronPDF allows developers to create, edit and extract PDF content in .NET Standard, Core and Framework Projects.
The Iron PDF library takes the frustration out of generating PDF documents by not relying on proprietary APIs. "Html-To-Pdf" renders pixel-perfect PDFs from open standard document types: HTML, JS, CSS, JPG, PNG, GIF, and SVG. In short, it uses skills that developers already posses.
Generate PDFs:
* "Html-To-Pdf" creates PDF files from HTML, CSS, JavaScript, and Images.
* "Url-To-Pdf" generates PDFs from existing html pages by simply providing their URL.
* "ASPX-To-Pdf" converts ASP.NET web forms directly into downloadable pdfs.
* "Image-To-Pdf" creates PDF documents from image files.
* HTML forms become PDF forms
Extract Data from PDFs:
* PDF to Image functionality can render PDF documents to image files.
* Fill and read data from PDF forms.
* Extract text and images from existing PDFs.
Edit PDFs:
* Load and Parse PDF document
* Merge, Split and Manipulate PDFs to edit PDF structure and content.
* Add Page Numbers, Headers, Footers, Annotations, Bookmarks, Watermarks, Text & Image Assets.
* Edit, Stamp and Watermark PDF files with text, images and HTML
* Apply HTML backgrounds to PDF pages
Secure PDFs:
* Add o& Remove PDF owner and user passwords
* Set PDF metadata and security Permissions
* Digital signatures
Fully Supports:
* .NET Framework 4.0 or above on Windows & Azure
* .NET Standard 2.0 & Core 2 & 3 on Windows, MacOS & Linux & Azure
* Cloud hosting services including Microsoft Azure, Docker and AWS
IronPDF can be used within ASP.NET Core, Standard and Framework projects for MVC, Web, Console, Cloud, Service, Function & Desktop Applications.
For code examples, tutorials and documentation visit https://ironpdf.com/ , you can also support email us developers@ironsoftware.com for support direct from our code team. We also offer licensing and extensive support for commercial deployment projects.
|
16 |
|
IronPdf
IronPDF allows developers to create, edit and extract PDF content in .NET Standard, Core and Framework projects.
The Iron PDF library takes the frustration out of generating PDF documents by not relying on proprietary APIs. “Html-To-Pdf” renders pixel-perfect PDFs from open standard document types: HTML, JS, CSS, JPG, PNG, GIF, and SVG. In short, it uses the skills that developers already possess.
Generate PDFs:
* “Html-To-Pdf” creates PDF files from HTML, CSS, JavaScript, and images.
* “Url-To-Pdf” generates PDFs from existing HTML pages by simply providing the URL.
* “ASPX-To-Pdf” converts ASP.NET web forms directly into downloadable PDFs.
* “Image-To-Pdf” creates PDF documents from image files.
* HTML forms become PDF forms.
Extract data from PDFs:
* Render image files from PDF documents with PDF to Image functionality.
* Fill and read data from PDF forms.
* Extract text and images from existing PDFs.
Edit PDFs:
* Load and parse PDF documents.
* Merge, Split and Manipulate PDFs to edit PDF structure and content.
* Add Page Numbers, Headers, Footers, Annotations, Bookmarks, Watermarks, Text & Image Assets.
* Edit, Stamp and Watermark PDF files with text, images and HTML.
* Apply HTML backgrounds to PDF pages.
Secure PDFs:
* Add & Remove PDF owners and user passwords.
* Set PDF metadata and security permissions.
* Provide Digital Signatures.
Fully Supports:
* .NET Framework 4.0 or above on Windows & Azure
* .NET Standard 2.0 & Core 2 & 3 on Windows, MacOS & Linux & Azure
* Cloud hosting services including Microsoft Azure, Docker, and AWS
IronPDF can be used within ASP.NET Core, Standard and Framework projects for MVC, Web, Console, Cloud, Service, Function & Desktop Applications.
For code examples, tutorials and documentation visit https://ironpdf.com/
You can email us at developers@ironsoftware.com for support directly from our code team. We offer licensing and extensive support for commercial deployment projects.
|
20 |
|
Microsoft.Identity.Web.TokenCache
This package bring token cache serializers for MSAL.NET confidential client applications.
|
26 |
|
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
|
16 |
|
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
|
19 |
|
NPOI
.NET port of Apache POI | Contact us on telegram: https://t.me/npoidevs
|
30 |
|
PDFSharp.Standard
Package Description
|
16 |
|
QRCoder
Package Description
|
17 |
|
QRCoder
QRCoder is a simple library, written in C#.NET, which enables you to create QR codes.
|
31 |
|
Svg
Public fork of the C# SVG rendering library on codeplex: https://svg.codeplex.com/
This started out as a minor modification to enable the writing of proper SVG strings. But now after almost two years we have so many fixes and improvements that we decided to share our current codebase to the public in order to improve it even further.
So please feel free to fork it and open pull requests for any fix, improvement or feature you add.
License: Microsoft Public License: https://svg.codeplex.com/license
|
16 |
|
Svg
Public fork of the C# SVG rendering library on codeplex: https://svg.codeplex.com/
This started out as a minor modification to enable the writing of proper SVG strings. But now after almost two years we have so many fixes and improvements that we decided to share our current codebase to the public in order to improve it even further.
So please feel free to fork it and open pull requests for any fix, improvement or feature you add.
License: Microsoft Public License: https://svg.codeplex.com/license
|
24 |
|
System.Windows.Extensions
Provides miscellaneous Windows-specific types
Commonly Used Types:
System.Security.Cryptography.X509Certificates.X509Certificate2UI
System.Security.Cryptography.X509Certificates.X509SelectionFlag
|
17 |
|
System.Windows.Extensions
Provides miscellaneous Windows-specific types
Commonly Used Types:
System.Security.Cryptography.X509Certificates.X509Certificate2UI
System.Security.Cryptography.X509Certificates.X509SelectionFlag
|
227 |
|
System.Windows.Extensions
Provides miscellaneous Windows-specific types
Commonly Used Types:
System.Security.Cryptography.X509Certificates.X509Certificate2UI
System.Security.Cryptography.X509Certificates.X509SelectionFlag
When using NuGet 3.x this package requires at least version 3.4.
|
31 |
|
System.Windows.Extensions
Provides miscellaneous Windows-specific types
Commonly Used Types:
System.Security.Cryptography.X509Certificates.X509Certificate2UI
System.Security.Cryptography.X509Certificates.X509SelectionFlag
When using NuGet 3.x this package requires at least version 3.4.
|
607 |
.NET Framework 4.6.2
- No dependencies.
.NET 8.0
- Microsoft.Win32.SystemEvents (>= 9.0.2)
.NET 9.0
- Microsoft.Win32.SystemEvents (>= 9.0.2)
.NET Standard 2.0
- No dependencies.