| An ImageEncoder for the PNM family of file formats.
The PNM file format includes PBM for monochrome images, PGM for
grey scale images, and PPM for color images. When writing the
source data out, the encoder chooses the appropriate file variant
based on the actual SampleModel of the source image. In case the
source image data is unsuitable for the PNM file format, for
example when source has 4 bands or float data type, the encoder
throws an Error.
The raw file format is used wherever possible, unless the
PNMEncodeParam object supplied to the constructor returns
true from its getRaw() method.
since: EA2 |