PBMA_TO_PBMB\
convert ASCII PBM to binary PBM graphics file {#pbma_to_pbmb-convert-ascii-pbm-to-binary-pbm-graphics-file align=”center”}
=============================================
PBMA_TO_PBMB is a C++ program which converts ASCII PBM files to
binary PBM format.
Usage: {#usage align=”center”}
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: {#licensing align=”center”}
The computer code and data files described and made available on this
web page are distributed under the GNU LGPL
license.
Languages: {#languages align=”center”}
PBMA_TO_PBMB is available in a C++
version.
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: {#reference align=”center”}
- the NETPBM homepage.
Source Code: {#source-code align=”center”}
List of Routines: {#list-of-routines align=”center”}
- 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.