title: java - how to make an image using setRGB?
body: <p>i have 2D array to keep color component value :</p>
  
  <pre><code>p[pixel_value][red]
  p[pixel_value][green]
  p[pixel_value][blue]
  </code></pre>
  
  <p>i just dont know how to use them to make an image.</p>
  
  <p>i read about <a href="http://www.java-tips.org/java-se-tips/java.awt.geom/how-to-set-and-get-the-values-of-pixels-in-a-buffered.html" rel="nofollow">setRGB</a>, what i understand is i should mix all of them to become a RGBArray. then how to make it?</p>
  
  <p>is it any better way to make an image without setRGB ? i need some explanation.</p>