开发者

Java Draw Image from Int Array

开发者 https://www.devze.com 2023-03-26 20:48 出处:网络
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 met

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

精彩评论

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

关注公众号