
Product
Socket Now Protects the Chrome Extension Ecosystem
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
IronDrawing is a library developed and maintained by Iron Software that helps C# Software Engineers to replace System.Drawing.Common in .NET projects.
IronDrawing.AnyBitmap
and the following:
System.Drawing.Bitmap
System.Drawing.Image
SkiaSharp.SKBitmap
SkiaSharp.SKImage
SixLabors.ImageSharp
Microsoft.Maui.Graphics.Platform.PlatformImage
IronDrawing.Color
and the following:
System.Drawing.Color
SkiaSharp.SKColor
SixLabors.ImageSharp.Color
SixLabors.ImageSharp.PixelFormats
IronDrawing.CropRectangle
and the following:
System.Drawing.Rectangle
SkiaSharp.SKRect
SkiaSharp.SKRectI
SixLabors.ImageSharp.Rectangle
IronDrawing.Font
and the following:
System.Drawing.Font
SkiaSharp.SKFont
SixLabors.Fonts.Font
Installing the IronDrawing NuGet package is quick and easy, please install the package like this:
PM> Install-Package IronDrawing
Once installed, you can get started by adding using IronDrawing
to the top of your C# code.
AnyBitmap
Code Exampleusing IronDrawing;
// 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 to IronDrawing.AnyBitmap
System.Drawing.Bitmap image = new System.Drawing.Bitmap("FILE_PATH");
var anyBitmap = image;
anyBitmap.SaveAs("result-from-casting.png");
Color
Code Exampleusing IronDrawing;
// 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 to IronDrawing.Color
System.Drawing.Color drawingColor = System.Drawing.Color.Red;
IronDrawing.Color ironDrawingColor = drawingColor;
ironDrawingColor.A;
ironDrawingColor.R;
ironDrawingColor.G;
ironDrawingColor.B;
// Luminance is a value from 0 (black) to 100 (white) where 50 is the perceptual "middle grey"
ironDrawingColor.GetLuminance();
CropRectangle
Code Exampleusing IronDrawing;
// Create a new CropRectangle object
CropRectangle cropRectangle = new CropRectangle(5, 5, 50, 50);
// Casting between System.Drawing.Rectangle to IronDrawing.CropRectangle
System.Drawing.Rectangle rectangle = new System.Drawing.Rectangle(10, 10, 150, 150);
CropRectangle ironDrawingCropRectangle = rectangle;
ironDrawingCropRectangle.Width;
ironDrawingCropRectangle.Height;
ironDrawingCropRectangle.X;
ironDrawingCropRectangle.Y;
Font
Code Exampleusing IronDrawing;
// Create a new Font object
Font font = new Font("Times New Roman", FontStyle.Italic | FontStyle.Bold, 30);
// Casting between System.Drawing.Font to IronDrawing.Font
System.Drawing.Font drawingFont = new System.Drawing.Font("Courier New", 30);
IronDrawing.Font ironDrawingFont = drawingFont;
ironDrawingFont.FamilyName;
ironDrawingFont.Style;
ironDrawingFont.Size;
ironDrawingFont.Italic;
ironDrawingFont.Bold;
For more information on Iron Software please visit: https://ironsoftware.com/ For general support and technical inquiries, please email us at: developers@ironsoftware.com
FAQs
Unknown package
We found that irondrawing demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.
Product
Socket now supports Scala and Kotlin, bringing AI-powered threat detection to JVM projects with easy manifest generation and fast, accurate scans.