开发者

Java Draw Image from Int Array

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)
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜