Reputation: 2641
If you have an int array representing individual pixels' RGB and Alpha values, how can I turn this into an image? Thanks in advance.
Upvotes: 0
Views: 2189
Reputation: 18861
You might want to use BufferedImage and setRGB method, see the docs and look for following method:
BufferedImage
setRGB
public void setRGB(int startX, int startY, int w, int h, int[] rgbArray, int offset, int scansize)
Upvotes: 1