Discussion Locked

paste images

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hi

I have two images that I want them to look as one big image. I wnat to paste a small on over a bigger one using code. Can you tell me how to do that please?! Thanks in advance.

Regards,

1 reply

by martin simons

Load both images as BufferedImages.

On the small image use:
getRGB(0, 0, width, height, array, 0, size)

Then on the large image use:
setRGB(startX, startY, width, height, array, 0, size)

This discussion is closed to new replies.