I am wondering if there is a way to load up a image and trim the white space of it?
like imagemagik for php have that feature but for java wonder if there is anything that can trim white space
There is a Java interface to ImageMagik that you could use if you want a third-party solution. Other than that, you would need to perform the image analysis yourself to isolate the sub-region and create the new image from it. The Advanced Imaging API would be useful for that.
so there is no class that can just do like .trim(BufferedImage) ?
the advanced imaging api I not sure if there is a function to let it trim a image. Or what class in the api to look for it.
Anyone have a better clue on how to do it?
No, there isn't a specialized operation like that. It's a generic image manipulation API - not Photoshop.