IRONSOFTWAREHOME
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 20,033,450Version:2025.3just released

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

OR
bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried Iron Suite
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required