S Scantech Well-Known Member Licensed User Longtime User Mar 11, 2019 #1 How do i get the XUI RGB color from a label.textcolor Thanks in advance
DonManfred Expert Licensed User Longtime User Mar 11, 2019 #2 https://www.b4x.com/android/forum/pages/results/?query=ColorToARGB ? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 11, 2019 #3 XUI colors are exactly the same as regular colors - an int number made of AARRGGBB. You can use GetARGB to extract the 4 values: https://www.b4x.com/android/forum/threads/get-the-rgb-color-from-getpixel.56760/#post-357302 Upvote 0
XUI colors are exactly the same as regular colors - an int number made of AARRGGBB. You can use GetARGB to extract the 4 values: https://www.b4x.com/android/forum/threads/get-the-rgb-color-from-getpixel.56760/#post-357302
S Scantech Well-Known Member Licensed User Longtime User Mar 11, 2019 #4 Erel said: XUI colors are exactly the same as regular colors - an int number made of AARRGGBB. You can use GetARGB to extract the 4 values: https://www.b4x.com/android/forum/threads/get-the-rgb-color-from-getpixel.56760/#post-357302 Click to expand... It did not work properly. Label.textcolor is orange and the r,g,b returned 255 value each. Upvote 0
Erel said: XUI colors are exactly the same as regular colors - an int number made of AARRGGBB. You can use GetARGB to extract the 4 values: https://www.b4x.com/android/forum/threads/get-the-rgb-color-from-getpixel.56760/#post-357302 Click to expand... It did not work properly. Label.textcolor is orange and the r,g,b returned 255 value each.
Erel B4X founder Staff member Licensed User Longtime User Mar 12, 2019 #5 Upload a small project that demonstrates the problem. Upvote 0
S Scantech Well-Known Member Licensed User Longtime User Mar 12, 2019 #6 never mind, it does work. I made an error. Upvote 0