Solved

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

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

740 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