title: How to convert 2d int array to bitmap in android
body: <p>I need to convert a 2d integer array (subSrc) to a bitmap. Any solutions?</p>
  
  <pre><code>    private Bitmap decimation(Bitmap src){
       Bitmap dest = Bitmap.createBitmap(
         src.getWidth(), src.getHeight(), src.getConfig());
  
       int bmWidth = src.getWidth();
       int bmHeight = src.getHeight();`enter code here`
  
  int[][] subSrc = new int[bmWidth/2][bmWidth/2];
         for(int k = 0; k &lt; bmWidth-2; k++){
          for(int l = 0; l &lt; bmHeight-2; l++){
           subSrc[k][l] = src.getPixel(2*k, 2*l); &lt;---- ??
  </code></pre>