L'extension de | .pnm |
Catégorie de | images |
Description | The PNM (Portable Any Map) format is a family of image file formats used for portable images, which are maps of pixel values that can represent grayscale or color data. The PNM format family includes three types of file formats: PBM (Portable BitMap), PGM (Portable GrayMap), and PPM (Portable PixMap). |
Détails techniques | In PBM format, the pixel values are binary, with each pixel represented by a single bit. A value of 0 represents black, and a value of 1 represents white. Each row of pixel data is stored as a sequence of bits, padded to the nearest byte.
In PGM format, the pixel values are grayscale, with each pixel represented by a single byte. The pixel data is stored as a sequence of bytes, with each row of pixel data stored contiguously.
In PPM format, the pixel values are color, with each pixel represented by three bytes representing the red, green, and blue components. The pixel data is stored as a sequence of triples of bytes, with each row of pixel data stored contiguously.
PNM files can be easily converted between the three formats, as well as to and from other image file formats using various software tools. |