简体   繁体   中英

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

How to get an outline path from an image in java ? I mean I want to get aa 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM