A
A
Alexander Nikolaev2020-11-21 12:49:52
Java
Alexander Nikolaev, 2020-11-21 12:49:52

how to overlay png images on top of each other in java?

I am writing a client-server application (browser game) in a team. I am a backend programmer. We use Java Spring. In one task, we need to work with images, or rather, overlay them on top of each other (the coat of arms generator). How can this be done (priority - performance and simplicity)? If there are no means for such parameters in the built-in java classes, maybe there are third-party libraries, or even other languages ​​compatible with the JVM (Kotlin, PHP in the JPHP implementation)?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan, 2020-11-22
@Dr3g0nra1der

Hello!
I don't quite see your end goal, but here are some thoughts on how to achieve your goal:

I am writing a client-server application (browser game) in a team.

If this is a browser game, then most likely you will need to generate coats of arms on the client. Those. rendering to canvas.
https://www.w3schools.com/graphics/canvas_images.asp
Googling - html javascript canvas image
If you want to generate an image on the server then try:
www.java2s.com/Tutorials/Java/Graphics_How_to/Imag...
https://www.baeldung.com/java-images

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question