android - how to pic color of a specific point of bitmap and use this to compare a color code -


i trying color of specific point , want compare face color ,but have problem compare it. how compare color of black , white face because @ black , white face there different core code different faces. please me find color of face , know color of black , white or colored face. use bitmap.getpixel(x,y); not able compare know color of black , white face or not.

please help.

not sure ur requirement bt following code fetch color pixel

         int pixel = x.getpixel((int)event.getx(),(int)event.gety());                 int redvalue = color.red(pixel);                 int bluevalue = color.blue(pixel);                 int greenvalue = color.green(pixel);                 int c=color.rgb(redvalue, greenvalue, bluevalue); 

now c color of pixel


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -