Solved

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

Posted on 2014-02-28
3
1,052 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
  • 2
3 Comments
 
LVL 47

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 47

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Learn how to use the remote presentation tool in Prezi to allow you to harness the power of this cloud based presentation platform. You can show your presentation with a remote audience using this free tool.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now