I need to create a rectangular BufferedImage with a specified background color, draw some pattern on the background and save it to file. I don\'t know how to cr
BufferedImage
BufferedImage image = new BufferedImage(width,height, BufferedImage.TYPE_INT_ARGB); int[]data=((DataBufferInt) image.getRaster().getDataBuffer()).getData(); Arrays.fill(data,color.getRGB());