Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-02-28
3
Medium Priority
?
1,288 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 50

Accepted Solution

by:
dbrunton earned 2000 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 50

Assisted Solution

by:dbrunton
dbrunton earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
In the absence of a fully-fledged GPO Management product like AGPM, the script in this article will provide you with a simple way to watch the domain (or a select OU) for GPOs changes and automatically take backups when policies are added, removed o…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

885 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