Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top