I have these several images which I need to be combined using BufferedImage in java. The logic of the program is this:
The user will be asked to input data (5 times) then the inputted value will be generated to image (I’m done coding with this part). My problem is how can I Combine them into one image only. Thanks!
I have these several images which I need to be combined using BufferedImage in
Share
You can create another new image. Depending on how you would like to combine the images you have two possibilities:
getGraphics()on the newly createBufferedImageand usedrawImage()multiple times to draw your other images into the newly created one (for example to create a tiled image with all the images you create beforehand)getRaster()on the newly createBufferedImageand use the methods of this object to draw information from your other images into this image (this way you can achieve any blend effects you might need)