title: How to efficiently read a Bitmap object into a two-dimensional integer array?
body: <p>I need to read the entirety of a Bitmap object into a 2-dimensional integer array in my Android application.</p>
  
  <p>Currently, I am reading each pixel individually, one at a time, like so:</p>
  
  <pre><code>for (int y = 0; y &lt; coverImageHeight; y++)
  {
      for (int x = 0; x &lt; coverImageWidth; x++)
      {
          coverImageIntArray[x][y] = coverImageBitmap.getPixel(x, y);
      }
  }
  </code></pre>
  
  <p>However, this takes a really long time on large images (about 15 seconds).</p>
  
  <p>Is there a way to do it all in one fell swoop for better efficiency?</p>