pierrem Member Licensed User Longtime User Dec 8, 2017 #1 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
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 Dec 10, 2017 #3 @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
@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 ?
Erel B4X founder Staff member Licensed User Longtime User Dec 11, 2017 #4 B4X: Dim x As B4XView = YourView 'XUI library Dim color As Int = x.Color Upvote 0