开发者

How to get an outline path from an image in java?

开发者 https://www.devze.com 2023-04-11 09:23 出处:网络
How to get an outline path f开发者_运维知识库rom an image in java ? I mean I want to get a a path iterator of the path surrounding the image Ignoring any transparent area in it .You should take a look

How to get an outline path f开发者_运维知识库rom an image in java ? I mean I want to get a a path iterator of the path surrounding the image Ignoring any transparent area in it .


You should take a look at open source Delineate, which is a tool for creating SVG from raster images.

I don't know if it directly supports the "alpha-to-path" feature you need.

If nothing else, it has the pixel-based edge detection and SVG path generation logic in there, which could be hacked to work against alpha if you were suitably motivated.

0

精彩评论

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