I am working on creating an online image editing tool.Looking for some refernce how can I add an image with white space on right side.For example see this image
Create a new BufferedImage object of the right size; use Graphics.fillRect() to paint it white; draw the image into the top-left corner with drawImage(); then save your new image.