PBMLIB - Portable Bit Map (PBM) Graphics
PBMLIB
is a C library which
creates and reads Portable Bit Map (PBM) graphics files.
Both ASCII and binary PBM formats are supported. The library can also handle
the related Portable Gray Map (PGM) and Portable Pixel Map
(PPM) formats.
There are many graphics programs, such as XV and GIMP, that can
display images in these formats, or translate them to other formats
such as BMP, GIF, JPEG, MacPaint, X Window, and so on.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
PBMLIB is available in
a C version and
a FORTRAN90 version.
Related Programs:
PBMA,
a data directory which
contains examples and a description
of the ASCII Portable Bit Map (PBM) graphics file format.
PBMA_IO,
a C library which
can read or write ASCII Portable Bit Map (PBM) graphics files.
PBMB_IO,
a C++ library which
can read or write binary Portable Bit Map (PBM) graphics files.
PGMA,
a data directory which
contains examples and a description
of the ASCII Portable Grayscale Map (PGM) graphics file format.
PGMA_IO,
a C library which
can read or write ASCII Portable Grayscale Map (PGM) graphics files.
PGMB_IO,
a C++ library which
can read or write binary Portable Grayscale Map (PGM) graphics files.
PPMA,
a data directory which
contains examples and a description
of the ASCII Portable Pixel Map (PPM) graphics file format.
PPMA_IO,
a C library which
can read or write ASCII Portable Pixel Map (PPM) graphics files.
PPMB_IO,
a C++ library which
can read or write binary Portable Pixel Map (PPM) graphics files.
Source Code:
Examples and Tests:
List of Routines:
-
BITCHR75 returns a 35 bit pattern for a given character.
-
PBM_CHECK_DATA checks the data for an ASCII portable bit map file.
-
PBM_EXAMPLE sets up some PBM data.
-
PBMA_READ reads the header and data from an ASCII portable bit map file.
-
PBMA_READ_DATA reads the data in an ASCII portable bit map file.
-
PBMA_READ_HEADER reads the header of an ASCII portable bit map file.
-
PBMA_READ_TEST tests the ASCII portable bit map read routines.
-
PBMA_WRITE writes the header and data for an ASCII portable bit map file.
-
PBMA_WRITE_DATA writes the data for an ASCII portable bit map file.
-
PBMA_WRITE_HEADER writes the header of an ASCII portable bit map file.
-
PBMA_WRITE_TEST tests the ASCII portable bit map write routines.
-
PBMB_READ reads the header and data from a binary portable bit map file.
-
PBMB_READ_DATA reads the data in a binary portable bit map file.
-
PBMB_READ_HEADER reads the header of a binary portable bit map file.
-
PBMB_READ_TEST tests the binary portable bit map read routines.
-
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.
-
PBMB_WRITE_TEST tests the binary portable bit map write routines.
-
PGM_CHECK_DATA checks the data for an ASCII portable gray map file.
-
PGM_EXAMPLE sets up some PGM data.
-
PGMA_READ reads the header and data from an ASCII portable gray map file.
-
PGMA_READ_DATA reads the data in an ASCII portable gray map file.
-
PGMA_READ_HEADER reads the header of an ASCII portable gray map file.
-
PGMA_READ_TEST tests the ASCII portable gray map read routines.
-
PGMA_WRITE writes the header and data for an ASCII portable gray map file.
-
PGMA_WRITE_DATA writes the data for an ASCII portable gray map file.
-
PGMA_WRITE_HEADER writes the header of an ASCII portable gray map file.
-
PGMA_WRITE_TEST tests the ASCII portable gray map write routines.
-
PGMB_READ reads the header and data from a binary portable gray map file.
-
PGMB_READ_DATA reads the data in a binary portable gray map file.
-
PGMB_READ_HEADER reads the header of a binary portable gray map file.
-
PGMB_READ_TEST tests the binary portable gray map read routines.
-
PGMB_WRITE writes the header and data for a binary portable gray map file.
-
PGMB_WRITE_DATA writes the data for a binary portable gray map file.
-
PGMB_WRITE_HEADER writes the header of a binary portable gray map file.
-
PGMB_WRITE_TEST tests the binary portable gray map write routines.
-
PPM_CHECK_DATA checks the data for an ASCII portable pixel map file.
-
PPM_EXAMPLE sets up some PPM data.
-
PPMA_READ reads the header and data from an ASCII portable pixel map file.
-
PPMA_READ_DATA reads the data in an ASCII portable pixel map file.
-
PPMA_READ_HEADER reads the header of an ASCII portable pixel map file.
-
PPMA_READ_TEST tests the ASCII portable pixel map read routines.
-
PPMA_WRITE writes the header and data for an ASCII portable pixel map file.
-
PPMA_WRITE_DATA writes the data for an ASCII portable pixel map file.
-
PPMA_WRITE_HEADER writes the header of an ASCII portable pixel map file.
-
PPMA_WRITE_TEST tests the ASCII portable pixel map write routines.
-
PPMB_READ reads the header and data from a binary portable pixel map file.
-
PPMB_READ_DATA reads the data in a binary portable pixel map file.
-
PPMB_READ_HEADER reads the header of a binary portable pixel map file.
-
PPMB_READ_TEST tests the binary portable pixel map read routines.
-
PPMB_WRITE writes the header and data for a binary portable pixel map file.
-
PPMB_WRITE_DATA writes the data for a binary portable pixel map file.
-
PPMB_WRITE_HEADER writes the header of a binary portable pixel map file.
-
PPMB_WRITE_TEST tests the binary portable pixel map write routines.
-
TIMESTAMP prints the YMDHMS date as a timestamp.
You can go up one level to
the C source codes.
Last revised on 05 October 2008.