Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

giakoum
Honored Contributor II

ARGB to RGB

Hi all.

I have ARGB color values that I need to convert to RGB :

ARGB(128, 255, 0, 0) to RGB(?, ?, ?)

alpha value 128 means 50% opacity for red in the above example. To what RGB does this correspond?

Thank you.

1 Solution

Accepted Solutions
flipside
Valued Contributor II

Re: ARGB to RGB

Answer on this thread ...

http://community.qlik.com/thread/74457?tstart=120

The post of May 14th 2013 has attachment AlphaBlending.qvw.

flipside

3 Replies

Re: ARGB to RGB

That depends on the color of the object below the object with color ARGB(128, 255, 0, 0). Against a white background it's 255,127,127.


talk is cheap, supply exceeds demand
giakoum
Honored Contributor II

Re: ARGB to RGB

Hi Gysbert.

Thank you for your answer. Yes, background is white. Is there a formula to calculate this, as alpha is dynamic and not always 128?

flipside
Valued Contributor II

Re: ARGB to RGB

Answer on this thread ...

http://community.qlik.com/thread/74457?tstart=120

The post of May 14th 2013 has attachment AlphaBlending.qvw.

flipside

Community Browser