If you have an int a开发者_如何学JAVArray representing individual pixels' RGB and Alpha values, how can I turn this into an image? Thanks in advance.
You might want to use BufferedImage
and setRGB
method, see the docs and look for following method:
public void setRGB(int startX,
int startY,
int w,
int h,
int[] rgbArray,
int offset,
int scansize)
精彩评论