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.format("0x%08X", (0xFFFFFFFF & intColor));
But i got transparent color.please help me
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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