I need to read a PGM image and get its points in Java. Anyone knows a good library to do that?

I have to display an image with PGM format and then get the values from that image to draw a path with A*.

Cumps.

有帮助吗?

解决方案

PGM is a simple format. You can read it manually.

It's specification is given here.

Also, this provides code to read it and display on a Component.

Good luck.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top