how to convert RGB value to hexadecimal value with alpha like (0xFFFFFFFF)?

后端 未结 1 688
小鲜肉
小鲜肉 2020-12-20 00:39

I have RGB integer value (ex:00255), i want to convert into this format 0XFF0000FF .I used this part of code,

int intColor=00255;
String hexColor = String.fo         


        
相关标签:
1条回答
  • 2020-12-20 01:31

    If you have an RGB color white : FFFFFF

    0x + ?? + FFFFFF will be the final format where ?? is the alpha transparency FF means totally opaque 00 means totally transparent

    Opaque white :0xFFFFFFFF

    Transparent White : 0x00FFFFFF

    0 讨论(0)
提交回复
热议问题