简体   繁体   中英

How to Stich multiple java.awt.Image objects

Refereing to my previous question,

How to Stich to Image objects in Java

I successfully stiched two java.awt.Image objects, now I need to stich multiple objects of the same type. Is there any API or library available for that

You want to stitch multiple images together into one larger image? Sum up all the width / heights of the tiles, create a new BufferedIage , get the graphics object from it, and do g.drawImage(tile1, xOffset, yOffset) , g.drawImage(tile2, xOffset2, yOffset2) , and so on.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM