Here you can find the source of makeRgbImage(int[][] rbgImage)
public static BufferedImage makeRgbImage(int[][] rbgImage)
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; public class Main { public static BufferedImage makeRgbImage(int[][] rbgImage) { BufferedImage image = new BufferedImage(rbgImage.length, rbgImage[0].length, BufferedImage.TYPE_INT_RGB); for (int x = 0; x < rbgImage.length; ++x) { for (int y = 0; y < rbgImage[x].length; ++y) { image.setRGB(x, y, (int) rbgImage[x][y]); }//from w ww.ja v a 2 s. com } return image; } }