Solved

Understanding & converting color codes:  RGB v Hex v ARGB v RGBA…

Posted on 2014-02-28
3
1,136 Views
Last Modified: 2014-03-18
Hello,

Regarding color codes and converting between them, are ARGB & RGBA identical except for the alpha transparency value position? Are they interchangeable?

Also, what is the "0x" prefix which is so commonly included?

Example (from the 2nd link included below):

"ARGB integer value (0xAARRGGBB) or HTML color name ("Red")."

I understand RGB & Hex and how to convert back and forth but I've not used the alpha parameter previously. I've read that it's a hex value which defines transparency but that's about it.

Specifically, I'm trying to build a GUI with multiple colors of buttons using AutoHotkey (AHK) and an AHK utility found here:

http://ahkscript.org/boards/viewtopic.php?f=6&t=1103
https://github.com/AHK-just-me/Class_ImageButton

Thanks
0
Comment
Question by:WeThotUWasAToad
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 48

Accepted Solution

by:
dbrunton earned 500 total points
ID: 39896689
>>  Also, what is the "0x" prefix which is so commonly included?

This is representing hexadecimal in the C programming language.

The # represents hexadecimal in HTML pages.

See https://en.wikipedia.org/wiki/Hexadecimal#Using_0.E2.80.939_and_A.E2.80.93F and the section below.
0
 
LVL 48

Assisted Solution

by:dbrunton
dbrunton earned 500 total points
ID: 39896692
>>  Regarding color codes and converting between them, are ARGB & RGBA identical except for the alpha transparency value position? Are they interchangeable?

See https://en.wikipedia.org/wiki/RGBA_color_space

They are the same.  It is just how they are stored and used.  The article also talks about 0x and # again as well.
0
 

Author Closing Comment

by:WeThotUWasAToad
ID: 39938627
Thanks
0

Featured Post

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
No single Antivirus application (despite claims by manufacturers) will catch or protect you from all Virus / Malware or Spyware threats. That doesn't stop you from further protecting yourself however - and this article is to show you how.
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
It’s easy to embed any of your public Prezi presentations on your website or social network to share with others. Learn how simple it is in this tutorial.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question