Solved

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

Posted on 2014-02-28
3
1,086 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 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Understanding mobile browsers 9 66
align Linkedin sign to the right page 5 37
Why a span is lower 2 21
Windows Services - Run a Program Grey Out 3 24
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
How to record audio from input sources to your PC – connected devices, connected preamp to record vinyl discs, streaming media, that play through your audio card: Vista, Windows 7, Windows 8, Windows 8.1 and Windows 10 – both 32 bit & 64.
In addition to being a great web-based presentation tool, Prezi also makes it easy to save your presentation as a PDF to share with others as well. Learn how in this tutorial. Select the share icon from the top menu in your Prezi editor: Select "D…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

832 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