Java RGB Color Create makeRgbImage(int[][] rbgImage)

Here you can find the source of makeRgbImage(int[][] rbgImage)

Description

make Rgb Image

License

Open Source License

Declaration

public static BufferedImage makeRgbImage(int[][] rbgImage) 

Method Source Code

//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;
    }
}

Related

  1. fromRGB(String tag)
  2. getRGB(Color color)
  3. getRGB(java.awt.Color color)
  4. makeIcon(int width, int height, int[] rgb)
  5. makeLinear_sRGBCM(boolean premult)
  6. msAccesToRGBa(int code)
  7. newRGBImage(int[] rgb, int width, int height, boolean processAlpha)
  8. RGB(float R, float G, float B)
  9. rgb(float rIn, float gIn, float bIn)