I have an integer representing a colour in ARGB. How do I convert this into a hex colour format/RGB colour format using java?
Asked
Active
Viewed 1,066 times
0
-
Is there alpha? If not just convert it to hex and ignore the first byte. – zapl Aug 29 '13 at 16:09
-
Can you elaborate what you mean by "convert this into a hex colour format"? Do you want to split the int value into 4 (or 3 for RGB) bytes? – Harald K Aug 29 '13 at 17:25
-
Duplicate of http://stackoverflow.com/questions/6001211/format-of-type-int-rgb-and-type-int-argb – Jim Garrison Aug 29 '13 at 17:37