0
픽셀의 색상을 얻으려고합니다. 내 응용 프로그램이 충돌하기 때문에픽셀 색상을 얻으려고하십시오.
bitmap = img.getDrawingCache();
int pixel = bitmap.getPixel(5,5);
int r = Color.red(pixel);
int g = Color.green(pixel);
int b = Color.blue(pixel);
Toast.makeText(getApplicationContext(),"R("+r+"G"+g+"b"+b, Toast.LENGTH_LONG);
불행하게도 뭔가가 누락 : 나는 내 OnCreate
에 다음 있습니다.
logcat 로그를 공유하십시오. –