PPMA_TO_PPMB
ASCII PPM to binary PPM graphics file conversion
PPMA_TO_PPMB
is a FORTRAN90 program which
converts ASCII PPM files to
binary PPM format.
Usage:
-
ppma_to_ppmb file.ppma file.ppmb
-
reads the data in file.ppma and writes it to file.ppmb
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
PPMA_TO_PPMB is available in
a C++ version and
a FORTRAN90 version.
Related Programs:
PPMA,
a data directory which
contains a description and examples of ASCII PPM files.
PPMB,
a data directory which
contains sample binary PPM files.
Reference:
-
the NETPBM homepage.
Source Code:
List of Routines:
-
MAIN is the main program for PPMA_TO_PPMB.
-
CH_CAP capitalizes a single character.
-
GET_UNIT returns a free FORTRAN unit number.
-
GETINT reads an integer from a file.
-
PPM_CHECK_DATA checks pixel data.
-
PPMA_READ reads an ASCII portable pixel map file.
-
PPMB_WRITE writes a binary portable pixel map file.
-
S_EQI is a case insensitive comparison of two strings for equality.
-
S_TO_I4 reads an integer value from a string.
-
S_TO_I4VEC converts an string of characters into an array of integers.
-
WORD_NEXT_RD "reads" words from a string, one at a time.
You can go up one level to
the FORTRAN90 source codes.
Last revised on 25 January 2006.