// from: https://stackoverflow.com/questions/14416107/int-array-to-bufferedimage // pixels are RGB pixels static BufferedImage bufferedImageWithoutAlpha(int[] pixels, int w, int h) { ret intArrayToBufferedImageWithoutAlpha(pixels, w, h); } static BufferedImage bufferedImageWithoutAlpha(int w, int h, int[] pixels) { ret intArrayToBufferedImageWithoutAlpha(pixels, w, h); } static BufferedImage bufferedImageWithoutAlpha(int w, int h, Color color) { ret bufferedImageWithoutAlpha(w, h, repIntAsArray(w*h, colorToInt(color))); }