Java padding image

后端 未结 3 1233
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-13 21:38

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

3条回答
  •  别那么骄傲
    2021-02-13 22:28

    If anyone comes upon a similar problem, I would definitively recommend imgScalr. You can add padding with literally one line imageSource= Scalr.pad(imageSource,pad,Color.White);.

提交回复
热议问题