Web Development

General discussion


paste images

By sunrise_636 ·

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.


This conversation is currently closed to new comments.

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)

Related Discussions

Related Forums