General discussion

Locked

paste images

By sunrise_636 ·
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,

This conversation is currently closed to new comments.

1 total post (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by Martin Simons In reply to paste images

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)

Back to Web Development Forum
1 total post (Page 1 of 1)  

Related Discussions

Related Forums