title: how to get pixel color using byte array in Android
body: <p>In my Android project,
  Here is my code.</p>
  
  <pre><code>for (int x = 0; x &lt; targetBitArray.length; x += weight) {
      for (int y = 0; y &lt; targetBitArray[x].length; y += weight) {
          targetBitArray[x][y] = bmp.getPixel(x, y) == mSearchColor;
      }
  }
  </code></pre>
  
  <p>but this code wastes a lot of time.</p>
  
  <p>So I need to find way faster than bitmap.getPixel().
  I'm trying to get pixel color using byte array converted from bitmap, but I can't.
  How to replace Bitmap.getPixel()?</p>