PBMA_TO_PBMB
convert ASCII PBM to binary PBM graphics file
PBMA_TO_PBMB
is a C++ program which
converts ASCII PBM files to binary PBM format.
Usage:
pbma_to_pbmb file1 file2
where
-
file1 is the name of an existing PBM file in ASCII format;
-
file2 is the name of the PBM file in binary format to
be created.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
PBMA_TO_PBMB is available in
a C++ version.
Related Data and Programs:
PBMA
a data directory which
contains sample ASCII PBM files.
PBMA_IO,
a C++ library which
is used by PBMA_TO_PBMB to read in the ASCII PBM file.
PBMB,
a data directory which
contains sample binary PBM files.
PBMB_IO,
a C++ library which
is used by PBMA_TO_PBMB to write out the binary PBM file.
PBMB_TO_PBMA,
a C++ program which
converts a binary PBM file to ASCII PBM format.
Reference:
-
the NETPBM homepage.
Source Code:
List of Routines:
-
MAIN is the main program for PBMA_TO_PBMB.
-
PBMA_CHECK_DATA checks the data for an ASCII PBM file.
-
PBMA_READ reads the header and data from an ASCII PBM file.
-
PBMA_READ_DATA reads the data in an ASCII PBM file.
-
PBMA_READ_HEADER reads the header of an ASCII PBM file.
-
PBMA_TO_PBMB converts an ASCII PBM file to binary PBM format.
-
PBMB_WRITE writes the header and data for a binary portable bit map file.
-
PBMB_WRITE_DATA writes the data for a binary portable bit map file.
-
PBMB_WRITE_HEADER writes the header of a binary portable bit map file.
-
S_LEN_TRIM returns the length of a string to the last nonblank.
-
S_WORD_EXTRACT_FIRST extracts the first word from a string.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
You can go up one level to
the C++ source codes.
Last revised on 01 April 2011.