I have an image with a plain background. Now I need to place another image onto it at (x, y) location. How is it possible?
Create a BufferedImage
with desired size. Use getGraphics()
of the image and paint the first image and then the second one. Graphics
has the method
public abstract boolean drawImage(Image img, int x, int y,
Color bgcolor,
ImageObserver observer)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With