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();
Imports IronSoftware.Drawing

' Convert color to a 32-bit ARGB value
Dim bmColor As Color = System.Drawing.Color.Black

Dim argb As Integer = 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,274,271Version:2026.11just 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.

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 IronDrawing
Get a Quote, No Obligation
Your details will always be kept confidential.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Trusted by Millions of Engineers Worldwide
Get your free 30-day Trial Key instantly.
No credit card or account creation required