问题
How to crop a polygon shaped portion of BufferedImage and write it to another BufferedImage?
回答1:
Graphics2D has clip(Shape) and draw(Shape) methods. So I would guess you can set the Shape to be your polygon and then paint from one BufferedImage to the other.
来源:https://stackoverflow.com/questions/4997473/how-to-crop-a-polygon-from-bufferedimage