IronSoftware.System.Drawing
2022.9.8843
Prefix Reserved
See the version list below for details.
dotnet add package IronSoftware.System.Drawing --version 2022.9.8843
NuGet\Install-Package IronSoftware.System.Drawing -Version 2022.9.8843
<PackageReference Include="IronSoftware.System.Drawing" Version="2022.9.8843" />
paket add IronSoftware.System.Drawing --version 2022.9.8843
#r "nuget: IronSoftware.System.Drawing, 2022.9.8843"
// Install IronSoftware.System.Drawing as a Cake Addin #addin nuget:?package=IronSoftware.System.Drawing&version=2022.9.8843 // Install IronSoftware.System.Drawing as a Cake Tool #tool nuget:?package=IronSoftware.System.Drawing&version=2022.9.8843
IronSoftware.Drawing - Image, Color, Rectangle, and Font class for .NET Applications
IronSoftware.Drawing is an open-source library originally developed by Iron Software that helps C# Software Engineers to replace System.Drawing.Common in .NET projects.
Table of Contents
IronSoftware.Drawing Features:
- AnyBitmap: A universally compatible Bitmap class. Implicit casting between
IronSoftware.Drawing.AnyBitmap
and the following supported:System.Drawing.Bitmap
System.Drawing.Image
SkiaSharp.SKBitmap
SkiaSharp.SKImage
SixLabors.ImageSharp
Microsoft.Maui.Graphics.Platform.PlatformImage
- Color: A universally compatible Color class. Implicit casting between
IronSoftware.Drawing.Color
and the following supported:System.Drawing.Color
SkiaSharp.SKColor
SixLabors.ImageSharp.Color
SixLabors.ImageSharp.PixelFormats
- CropRectangle: A universally compatible Rectangle class. Implicit casting between
IronSoftware.Drawing.CropRectangle
and the following supported:System.Drawing.Rectangle
SkiaSharp.SKRect
SkiaSharp.SKRectI
SixLabors.ImageSharp.Rectangle
- Font: A universally compatible Font class. Implicit casting between
IronSoftware.Drawing.Font
and the following supported:System.Drawing.Font
SkiaSharp.SKFont
SixLabors.Fonts.Font
IronSoftware.Drawing has cross platform support compatibility with:
- .NET 7, .NET 6, .NET 5, .NET Core, Standard, and Framework
- Windows, macOS, Linux, Docker, Azure, and AWS
Using IronSoftware.Drawing
Installing the IronSoftware.Drawing NuGet package is quick and easy, please install the package like this:
PM> Install-Package IronSoftware.System.Drawing
Once installed, you can get started by adding using IronSoftware.Drawing;
to the top of your C# code.
AnyBitmap
Code Example
using IronSoftware.Drawing;
// Create a new AnyBitmap object
var bitmap = AnyBitmap.FromFile("FILE_PATH");
bitmap.SaveAs("result.jpg");
var bytes = bitmap.ExportBytes();
var resultExport = new System.IO.MemoryStream();
bimtap.ExportStream(resultExport, AnyBitmap.ImageFormat.Jpeg, 100);
// Casting between System.Drawing.Bitmap and IronSoftware.Drawing.AnyBitmap
System.Drawing.Bitmap image = new System.Drawing.Bitmap("FILE_PATH");
IronSoftware.Drawing.AnyBitmap anyBitmap = image;
anyBitmap.SaveAs("result-from-casting.png");
Color
Code Example
using IronSoftware.Drawing;
// Create a new Color object
Color fromHex = new Color("#191919");
Color fromRgb = new Color(255, 255, 0);
Color fromEnum = Color.Crimson;
// Casting between System.Drawing.Color and IronSoftware.Drawing.Color
System.Drawing.Color drawingColor = System.Drawing.Color.Red;
IronSoftware.Drawing.Color ironColor = drawingColor;
ironColor.A;
ironColor.R;
ironColor.G;
ironColor.B;
// Luminance is a value from 0 (black) to 100 (white) where 50 is the perceptual "middle grey"
IronDrawingColor.GetLuminance();
CropRectangle
Code Example
using IronSoftware.Drawing;
// Create a new CropRectangle object
CropRectangle cropRectangle = new CropRectangle(5, 5, 50, 50);
// Casting between System.Drawing.Rectangle and IronSoftware.Drawing.CropRectangle
System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(10, 10, 150, 150);
IronSoftware.Drawing.CropRectangle ironRectangle = rectangle;
ironRectangle.X;
ironRectangle.Y;
ironRectangle.Width;
ironRectangle.Height;
Font
Code Example
using IronSoftware.Drawing;
// Create a new Font object
Font font = new Font("Times New Roman", FontStyle.Italic | FontStyle.Bold, 30);
// Casting between System.Drawing.Font and IronSoftware.Drawing.Font
System.Drawing.Font drawingFont = new System.Drawing.Font("Courier New", 30);
IronSoftware.Drawing.Font ironFont = drawingFont;
ironFont.FamilyName;
ironFont.Style;
ironFont.Size;
ironFont.Italic;
ironFont.Bold;
Support Available
For more information about Iron Software please visit our website: https://ironsoftware.com/
For general support and technical inquiries, please email us at: developers@ironsoftware.com
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 | 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 4.6.2
- SixLabors.ImageSharp (>= 2.1.3)
-
.NETStandard 2.0
- SixLabors.ImageSharp.Drawing (>= 1.0.0-beta15)
NuGet packages (20)
Showing the top 5 NuGet packages that depend on IronSoftware.System.Drawing:
Package | Downloads |
---|---|
IronPdf.Slim
IronPDF helps C# Software Engineers to create, edit and extract PDF content in .NET projects. Requires IronPdf.Native.Chrome and IronSoftware.Native.PdfModel NuGet package appropriate for your platform. # C# HTML to PDF for .NET 8, .NET 7, .NET 6, .NET 5, Core, Standard, and Framework # Work with PDFs in C# using HTML, MVC, ASPX, and images # Generate, Edit, Read and Secure PDF Documents Generate PDFs with Pixel Perfect Chrome HTML to PDF Rendering: The IronPDF 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. Fully Supports: * .NET 8, .NET 7, .NET 6, .NET 5, Framework, Core, and Standard * Windows, macOS, Linux, Azure, Docker and AWS For code examples, tutorials and documentation visit https://ironpdf.com/ |
|
IronOcr
IronOCR is an advanced OCR (Optical Character Recognition) library for C# and .NET It provides Tesseract OCR on Mac, Windows, Linux, Azure and Docker for: * .NET Framework 4.6.2 + * .NET Standard 2.0 + * .NET Core 2.0 + * .NET 5 * .NET 6 * .NET 7 * .NET 8 * Mono for MacOS and Linux * Xamarin for MacOS IronOCR reads Text, Barcodes & QR from all major image and PDF formats using the latest Tesseract 5 engine. This library adds OCR functionality to Desktop, Console and Web applications in minutes. IronOCR's Unique Features: * Pure .Net OCR API * All OCR tasks run locally (no SAAS) * 125 languages * Barcode & QR Code reading * Corrects low quality, noisy and distorted scans * Performance tuned above and beyond any other known build of Tesseract OCR. * Reads PDFs * Reads multi-page TIFFs * Can save any OCR Scan to a searchable PDF document or XHTML Data output options include: Plain Text, Barcode Data and an OCR Result class containing paragraphs, lines, words, and characters. Language Support: 125 Languages including Arabic, Chinese, English, Finnish, French, German, Hebrew, Italian, Japanese, Korean, Portuguese, Russian, Spanish... Custom language packs can also be created. Licensing & Support available for commercial deployments. Email: support@ironsoftware.com For code examples, documentation & more visit http://ironsoftware.com/csharp/ocr/ |
|
IronXL.Excel
IronXL allows developers to Read, Generate and Edit Excel (and other Spreadsheet files) in .NET Applications & websites. A fast and natural approach to work with Excel and Other Spreadsheet files in C#. For code samples, docs & more visit https://ironsoftware.com/csharp/excel/ No utilization of Office Excel Interop. Works well with .NET Framework, .NET Core and Azure. All without extra dependancies or the need to install MS Office. Key library features include: * Import Data from XLS/XLSX/CSV/TSV. * Export Work Sheets to XLS/XLSX/CSV/TSV/JSON. * Encrypt and decrypt XLSX/XLSM/XLTX files with passwords. * Work with Spreadsheets as System.Data.DataSet and System.Data.DataTable objects. * Excel Formulas recalculated every time a sheet it edited. * Intuitive Ranges setting with a WorkSheet["A1:B10"] syntax. * Sort Ranges, Columns and Rows. * Style Cells - Font, Size, Background pattern, Border, Alignment and Number formats. IronXL works well in C#, VB.NET, MVC, ASP.NET projects for Websites, Console & Desktop APPs. Works with: - .NET Core 2, 3.1 - .NET 5 - .NET 6 - .NET 7 - .NET 8 - .NET Standard 2 & 3 - .NET Framework 4.7.2 and above - Xamarin, SharePoint, Mono - Azure, AWS, Cloud hosting - Windows, Linux, macOS, Mobile Licensing & Support available for commercial deployments. Find full documentation at: https://ironsoftware.com/csharp/excel/ For support please contact us: support@ironsoftware.com |
|
BarCode.Slim
IronBarcode - The C# Barcode & QR Library Quickstart guide: https://ironsoftware.com/csharp/barcode/ IronBarcode allows developers to read & write Barcodes and QR Codes within .NET Applications & websites. Reading or writing barcodes only requires a single line of code with Iron Barcode. The .NET Barcode Library reads and writes most Barcode and QR standards. These include code 39/93/128, UPC A/E, EAN 8/13, ITF, RSS 14 / Expanded, Databar, CodaBar, Aztec, Data Matrix, MaxiCode, PDF417, MSI, Plessey, USPS, and QR. The barcode result data includes type, text, binary data, page, and image file. Barcode reading engine includes automatic image correction and barcode detection technology to take the pain out of locating and reading from imperfect scans. Multithreading, cropping, and batch scanning provides fast and accurate scanning of multi page documents. Barcode writing API checks and verifys format, length, number, checksum to automatically avoid encoding errors. Barcode writer allows for styling, resizing, margins, borders, recoloring, and adding text annotations. Write to image, PDF or HTML file. Key library features include: * Read single or multiple Barcodes and QR Codes from images or PDFs. * Image correction for skewing, orientation, noise, low resolution, contrast etc. * Create barcodes and apply to images or PDF documents. * Embed barcodes into html documents. * Style Barcodes and add annotation text. * QR Code Writing allows adding of logos, colors, and advanced QR alignment. IronBarcode can be used within C#, VB.NET, ASP .NET projects, MVC, Web Services, Console & Desktop Applications. Supports: * .NET Framework 4.6.2 + * .NET Core 2.0 + * .NET 5 * .NET 6 * .NET 7 * .NET 8 Licensing & Support available for commercial deployments. For code examples, documentation & more visit https://ironsoftware.com/csharp/barcode/ For support please email us at support@ironsoftware.com |
|
IronOcr.Linux
IronOCR is an advanced OCR (Optical Character Recognition) library for C# and .NET It provides Tesseract OCR on Mac, Windows, Linux, Azure and Docker for: * .NET Framework 4.6.2 + * .NET Standard 2.0 + * .NET Core 2.0 + * .NET 5 * .NET 6 * .NET 7 * .NET 8 * Mono for MacOS and Linux * Xamarin for MacOS IronOCR reads Text, Barcodes & QR from all major image and PDF formats using the latest Tesseract 5 engine. This library adds OCR functionality to Desktop, Console and Web applications in minutes. IronOCR's Unique Features: * Pure .Net OCR API * All OCR tasks run locally (no SAAS) * 125 languages * Barcode & QR Code reading * Corrects low quality, noisy and distorted scans * Performance tuned above and beyond any other known build of Tesseract OCR. * Reads PDFs * Reads multi-page TIFFs * Can save any OCR Scan to a searchable PDF document or XHTML Data output options include: Plain Text, Barcode Data and an OCR Result class containing paragraphs, lines, words, and characters. Language Support: 125 Languages including Arabic, Chinese, English, Finnish, French, German, Hebrew, Italian, Japanese, Korean, Portuguese, Russian, Spanish... Custom language packs can also be created. Licensing & Support available for commercial deployments. Email: support@ironsoftware.com For code examples, documentation & more visit http://ironsoftware.com/csharp/ocr/ |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on IronSoftware.System.Drawing:
Repository | Stars |
---|---|
MajMcCloud/TelegramBotFramework
This is a context based application framework for the C# TelegramBot library.
|
Version | Downloads | Last updated |
---|---|---|
2024.9.15 | 51,063 | 10/11/2024 |
2024.9.11 | 18,902 | 9/13/2024 |
2024.9.10 | 167,332 | 8/26/2024 |
2024.8.1 | 139,089 | 7/23/2024 |
2024.7.2 | 108,639 | 6/18/2024 |
2024.6.1 | 131,098 | 5/20/2024 |
2024.5.1 | 176,955 | 4/23/2024 |
2024.4.1 | 144,457 | 3/19/2024 |
2024.3.4 | 207,714 | 3/7/2024 |
2024.3.2 | 46,382 | 2/21/2024 |
2024.2.2 | 219,657 | 1/16/2024 |
2024.1.1 | 180,770 | 12/12/2023 |
2023.12.1 | 367,817 | 11/2/2023 |
2023.11.1 | 213,511 | 10/10/2023 |
2023.10.1 | 46,994 | 9/26/2023 |
2023.9.2 | 250,797 | 8/23/2023 |
2023.7.1 | 630,533 | 6/21/2023 |
2023.6.1 | 101,844 | 5/18/2023 |
2023.4.4 | 93,351 | 4/18/2023 |
2023.4.2-prerelease | 7,627 | 3/28/2023 |
2023.3.3 | 1,745,728 | 3/28/2023 |
2023.3.1 | 90,157 | 3/1/2023 |
2023.2.12 | 230,991 | 2/23/2023 |
2023.2.2 | 45,308 | 2/2/2023 |
2023.1.11379 | 49,430 | 1/6/2023 |
2022.12.11227 | 300,069 | 12/28/2022 |
2022.11.10457 | 170,315 | 11/15/2022 |
2022.10.9851 | 91,505 | 10/18/2022 |
2022.9.8843 | 78,011 | 9/8/2022 |
Support and Compatibility
* Universal compatiblity for .NET 7, .NET 6, .NET 5, and .NET Core
* Support for Windows, macOS, Linux, Azure, AWS, Mobile, iOS, Android, Xamarin, NanoServer, and IIS
All new classes developed to support conversion between: (System.Drawing, SixLabors.ImageSharp, SkiaSharp, and Microsoft.Maui)
* AnyBitmap: A universally compatible Bitmap class
* Color: A universally compatible Color class
* Font: A universally compatible Font class
* CropRectangle: A universally compatible Rectangle class