How can I convert an ARGB integer to the corresponding ARGB tuple (A,R,G,B)?
I receive some XML where a color tag is given with some integer value (e.g -16777216). I need to draw a rectangle filled with that color. But I am unable to retrieve values of the A,R,G,B components from the integer value.