Java BufferedImage increase width

Posted by James Moore on Stack Overflow See other posts from Stack Overflow or by James Moore
Published on 2010-04-21T14:48:59Z Indexed on 2010/04/21 14:53 UTC
Read the original article Hit count: 221

Filed under:

Hello,

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

© Stack Overflow or respective owner

Related posts about java