简体   繁体   中英

Java BufferedImage increase width

I have managed to load in an image using:

BufferedImage image = ImageIO.read(out);

and place text over it however, I want the text to appear next to the image. How can I increase the image width on the right to allow for space for the text to be drawn on. Or do I have to create a new empty image and insert the existing one?

Thanks

是的,您需要创建一个新的缓冲图像并在新的较大图像之上绘制现有图像。

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