I am trying to understand an android code
mCanvas.drawColor(-1);
What does the -1 mean ? What RGB value it equates to ?
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.
It doesn’t appear that that function accepts any special values, so I’ll guess it’s just some really obscure way of specifying white.
Hex value of -1 is
0xFFFFFFFF, which just breaks down intoR=255, G=255, B=255, A=255, which is full white.