Portable pixmap


file format
(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.
(1998-02-06)

Read Also:

  • Portable scheme debugger

    (PSD) A package for source code debugging of R4RS-compliant Scheme under GNU Emacs by Kellom ?ki Pertti [email protected]. Version 1.1. Distributed under GNU GPL. It works with scm, Elk and Scheme->C. (ftp://ftp.cs.tut.fi/pub/src/languages/schemes/psd.tar.Z). (1992-10-08)

  • Portable scheme interpreter

    (PSI) A portable scheme interpreter by Ozan Yigit [email protected], David Keldsen and Pontus Hedman that includes a simple DAG compiler and a virtual machine. It can be used as an integrated extension interpreter in other systems and allows easy addition of new primitives. There are some unique debugging and tracing facilities. Acceptable performance results from […]

  • Portable standard lisp

    language (PSL) A dialect of Lisp from Utah University. PSL is available as a kit for 68000 and also runs on VAX. It compiles Lisp to C-code virtual machine language. [“The Portable Standard LISP Users Manual”, TR-10, CS Dept, U Utah, Jan 1982]. [“A Portable Lisp System”, M.L. Griss et al, Proc 1982 ACM Symp […]

  • Portable tool interface

    programming, standard (PTI) A standard such as PCTE, allowing interworking between different software tools via defined interfaces to the user and to the repository or object management system. (2000-09-25)

  • Portably

    [pawr-tuh-buh l, pohr-] /ˈpɔr tə bəl, ˈpoʊr-/ adjective 1. capable of being transported or conveyed: a portable stage. 2. easily carried or conveyed by hand: a portable typewriter. 3. Computers. (of data sets, software, etc.) capable of being used on different computer systems. 4. Obsolete. . noun 5. something that is portable, especially as distinguished […]


Disclaimer: Portable pixmap definition / meaning 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. All content on this website is for informational purposes only.