Hi guys,

I want to paint multiple layers of images onto one image. I'm going to be using BufferedImage for this.

How would I go about painting these multiple images onto one (in essence creating a new image. sort of like a collage)?

Would i get the graphics context and then paint to the BufferedImage?

7 Years
Discussion Span
Last Post by redZERO

Depends, if you mean taking certain elements from images and putting them together in one image, you'll have to find a way to isolate the pixels needed from the images and transfer the pixels over into the other image. You'll also have to take image size into account with this (hopefully you only want one size throughout, that makes it easier). If you want to take the images and combine the pixels into some strange mixed/artistic sort of development, you'll get the color values from each pixel, add them, then set the value to the pixel in the new image. I'm a little rusty on the coding, so I would have to look it up, but does this help any?

Votes + Comments
Gave a substantial answer

Thanks very much poeticinsanity. I wasn't sure if it would work, but it does. Thank you.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.