Reymmer Reymmer - 1 year ago 119
Java Question

Get a BufferedImage output composed of several image layers

for my current work, I need to add images on top of other images at runtime. I already searched and I don't want to draw it on a Swing component, I use it in an external API.
Ideally, I would like a library (or a java-native way) with which I can specify several images to "layer", and it would return me a BufferedImage (or any Image object by the way).

Answer Source

If you want a single image (BufferedImage) in return, then you need to compose your images.
This answer may help you Have a look at the documentation for method drawImage to control position and scaling of any drawing through the Graphics object.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download