0

If you have an int array representing individual pixels' RGB and Alpha values, how can I turn this into an image? Thanks in advance.

1 Answer 1

1

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)
Sign up to request clarification or add additional context in comments.

1 Comment

See also this answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.