title: how to make image from some some other images in java
body: <p>i wanna make an image from other images in java, i have some tiles and i've cropped the parts i need and i wanna group them in another image; here an exemple :</p>
  
  <p><img src="https://i.stack.imgur.com/KeNV7.jpg" alt="enter image description here"></p>
  
  <p>lets say that i have cropped each square in an image, i need a function to group them in 1 image again like the first picture</p>
  
  <pre><code>public Image groupe(Image[][] images){
         Image image=new Image();
         for(int i=0;i&lt;images.length;i++){
             for(int j=0;j&lt;images[0].length;j++){
                 //here i need a function to groupe the images into image
             }
         }
         return image;
  }
  </code></pre>