Android Question colordrawable ... get the RGB value ?

pierrem

Member
Licensed User
Longtime User
Hi,

How to get the 3 RGB colors used in a colordrawable ?

for example :
...
dim cd as colordrawable
cd.initialize(colors.RGB(x,y,z),0)
...

how to get back the 'x','y' and 'z' value ?

Not found on the forum, may be bad keywords

thks in advance
 

pierrem

Member
Licensed User
Longtime User
@NJDude :

Thanks,
but as far as I understand ... the described getARGB() function accept as parameter a 'color' ... not a 'colordrawable'.
Or may be my question is : how to extract a the color from a colordrawable ?
 
Upvote 0
Top