How to auto crop an image white border in Java?

前端 未结 4 971
北荒
北荒 2020-12-15 11:04

What\'s the easiest way to auto crop the white border out of an image in java? Thanks in advance...

4条回答
  •  我在风中等你
    2020-12-15 11:32

    img is original image source BufferedImage subImg = img.getSubimage(0, 0, img.getWidth() - 1, img.getHeight() - 1);

提交回复
热议问题