PGMA Files
Portable Gray Map (ASCII)


PGMA is the ASCII portable gray map format. It is a simple grayscale image description. The definition is as follows:

Characters from a "#" to the next end-of-line are ignored (comments). No line should be longer than 70 characters.

Example PGMA file:

        P2
        # feep.pgma
        24 7
        15
        0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0
        0 3  3  3  3  0  0  7  7 7  7  0  0 11 11 11 11 0  0 15 15 15 15  0
        0 3  0  0  0  0  0  7  0 0  0  0  0 11  0  0  0 0  0 15  0  0 15  0
        0 3  3  3  0  0  0  7  7 7  0  0  0 11 11 11  0 0  0 15 15 15 15  0
        0 3  0  0  0  0  0  7  0 0  0  0  0 11  0  0  0 0  0 15  0  0  0  0
        0 3  0  0  0  0  0  7  7 7  7  0  0 11 11 11 11 0  0 15  0  0  0  0
        0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0  0 0  0  0  0  0  0  0
      

PGMA File Characteristics:

Related Data and Programs:

PBMA is a data directory which describes ASCII Portable Bit Map files.

PGMB is a data directory which describes binary Portable Gray Map files.

PPMA is a data directory which describes ASCII Portable Pixel Map files.

Reference:

  1. the NETPBM homepage.

Programs to create a PGMA file:

Programs and routines to read a PGMA file:

Programs and routines to write a PGMA file:

Programs to view a PGMA file include:

Programs to convert a PGMA file to another format:

Programs to convert a file to PGMA format:

Sample PGMA files:

You can go up one level to the DATA page.


Last revised on 05 September 2006.