BMP_TO_PPMA
BMP => ASCII Portable Pixel Map (PPM) Graphics File Conversion
BMP_TO_PPMA
is a C++ program which
converts a Microsoft BMP file to an ASCII Portable Pixel Map (PPM) file.
Usage:
-
bmp_to_ppma file.bmp file.ppm
-
reads data from file.bmp and creates an equivalent
graphics file in file.ppm.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
BMP_TO_PPMA is available in
a C++ version.
Related Data and Programs:
BMP,
a file directory which
contains a description and examples of BMP files.
BMP_IO,
a C++ library which
reads or writes BMP graphics files.
PPMA,
a file directory which
contains a description and examples of ASCII Portable Pixel Map (PPM) files.
PPMA_TO_BMP,
a C++ program which
converts ASCII Portable Pixel Map (PPM) files to BMP files.
PPMA_IO,
a C++ library which
reads or writes Portable Pixel Map (PPM) files.
Reference:
-
Microsoft Corporation,
Microsoft Windows Programmer's Reference,
Volume 5; Messages, Structures, and Macros,
Microsoft Press, 1993.
-
http://netpbm.sourceforge.net
the NETPBM homepage.
Source Code:
List of Routines:
-
MAIN is the main program for BMP_TO_PPMA.
-
BMP_TO_PPMA reads a BMP file and writes an ASCII PPM file.
-
TIMESTAMP prints the current YMDHMS date as a time stamp.
-
UCMAT_TO_I4MAT converts a UCMAT to an I4MAT.
-
UCMAT_VERT_FLIP swaps rows of a UCMAT, to flip it vertically.
You can go up one level to
the C++ source codes.
Last revised on 02 December 2006.