A Java ImageIO plugin for the Portable Any Map image format. This project implements read/write support using ImageIO framework for all Portable Any Map formats (pgm, ppm, pbm and pnm).
For sake of simplification, to register all plugins to ImageIO framework, just call the method PNMRegistry.registerAllServicesProviders()
. For a better understanding how to use this library, take a look at samples/PNMViewer.java
. A simple way to use is:
PNMRegistry.registerAllServicesProviders();
final BufferedImage bi = ImageIO.read("image.pgm");
ImageIO.write(bi, "pgm", new File("image_2.pgm"));
Just mvn install
!
MIT