Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 701 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 701 Bytes

imageio-pnm

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).

Usage

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"));

Build

Just mvn install!

License

MIT