开发者

How to crop a polygon from BufferedImage

开发者 https://www.devze.com 2023-02-10 05:54 出处:网络
How to crop a polygon shaped portion of BufferedImage and write it to anot开发者_运维技巧her BufferedImage? Graphics2D has clip(Shape) and draw(Shape) methods. So I would guess you can set the Shape t

How to crop a polygon shaped portion of BufferedImage and write it to anot开发者_运维技巧her BufferedImage?


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号