Printer Friendly
Dictionary, Encyclopedia and Thesaurus - The Free Dictionary
1,802,091,453 visitors served.
forum mailing list For webmasters
?
New: Language forums
Dictionary/
thesaurus
Medical
dictionary
Legal
dictionary
Financial
dictionary
Acronyms
 
Idioms
Encyclopedia
Wikipedia
encyclopedia
?

Portable Pixmap

   Also found in: Wikipedia 0.12 sec.
(file format)Portable Pixmap - (PPM) A colour image file format.

A PPM file contains the following:

a two character "magic number" - "P3", the width in pixels, the height in pixels, the maximum colour component value, HEIGHT rows of WIDTH pixels.

The rows are ordered from top to bottom with the pixels in each row ordered from left to right. Each pixel is represented as three values for red, green, and blue.

All parts are separated by whitespace and numbers are in decimal ASCIII representation. A zero pixel component means that colour is absent. Characters from a "#" to the next end-of-line are ignored and no line should be longer than 70 characters.

Here is an example of a small pixmap in this format:

P3 # feep.ppm 4 4 15 0 0 0 0 0 0 0 0 0 15 0 15 0 0 0 0 15 7 0 0 0 0 0 0 0 0 0 0 0 0 0 15 7 0 0 0 15 0 15 0 0 0 0 0 0 0 0 0

A "RAWBITS" variant has magic number "P6", pixel values are stored as plain binary bytes, instead of ASCII decimal and no whitespace is allowed after a single whitespace character after the maximum colour component value which must be less than or equal to 255.


How to thank TFD for its existence? Tell a friend about us, add a link to this page, add the site to iGoogle, or visit webmaster's page for free fun content.
?Page tools
Printer friendly
Cite / link
Email
Feedback
? Mentioned in ? References in periodicals archive
 
In addition to CGM, FIGleaf Inline supports the following file formats: Tagged Image File Format (TIFF); Encapsulated PostScript (EPSI/EPSF); CCITT Group 4 Type 1 (G4) and Type 2 (TG4); Microsoft(R) Windows(tm) Bitmap (BMP) and Metafile (WMF); Portable Pixmap (PPM); Portable Greymap (PGM); Portable Bitmap (PBM); Sun Raster files (SUN); GIF; and JPEG.
 
Encyclopedia browser? ? Full browser
 
 
Encyclopedia
?

Disclaimer | Privacy policy | Feedback | Copyright © 2009 Farlex, Inc.
All content on this website, including dictionary, thesaurus, literature, geography, and other reference data is for informational purposes only. This information should not be considered complete, up to date, and is not intended to be used in place of a visit, consultation, or advice of a legal, medical, or any other professional. Terms of Use.