I'm working on android's canvas view. I just want to know if this condition is valid semantically.
if(bitmap.getPixel(x,y) == Color.WHITE)
I logged the value of Color.WHITE by:
int white = Color.WHITE;
and this gave me the value of -1 and value of black color was -1633377 something.
I found the way of getting the value of any pixel in bitmap by getPixel() method and it returns an ARGB value. I've tried various ways to do this but none succeeded.
Can you guys help me with this?
Thanks.