title: Creating PNG file from int Array of RGB data
body: <p>I am getting the int array from png image how I will convert this to bufferdimage or creating new PNG file ?</p>
  
  <pre><code>int[] pixel = new int[w1*h1];
          int i = 0;
          for (int xx = 0; xx &lt; h1; xx++) {
              for (int yy = 0; yy &lt; w1; yy++) {
                          pixel[i] = img.getRGB(yy, xx);
                          i++;
                  }
           }
  </code></pre>