Get RGBValues of Bitmap in Android
问题 I'm having some issues getting the RGB values of a bitmap in Android... This is what I'm doing: int[] temp = new int[width*height]; bit.getPixels(temp, 0, width, 0, 0, width, height); However, the colors don't seem to match the typical RGB values. For example, a white pixel will show up as -1, whereas the RGB value for it is 16777215. (I'm getting that value from this website: http://www.shodor.org/stella2java/rgbint.html) There's also a ton of negative values which don't seem to fit normal