Convert Color to 32-Bit ARGB Value
using IronSoftware.Drawing;

// Convert color to a 32-bit ARGB value
Color bmColor = System.Drawing.Color.Black;

int argb = bmColor.ToArgb();
NuGet Download
PM > Install-Package IronSoftware.System.Drawing
Convert Color to 32-Bit ARGB Value

Convert Color to 32-Bit ARGB Value

IronDrawing also has a feature of converting colors to 32-bit ARGB values for developers that seek to use the value in programming or simply want to know the value of a certain color.

To use this feature, create a variable of type System.Drawing.Color and assign it to a color available in System.Drawing.Color. From there, use the method .ToArgb() on the variable to convert the color chosen to a 32-bit ARGB value.

View on GitHub

Ready to Get Started?

Nuget Downloads 21,390,103Version:2026.11just released