grid_to_bmp, a C++ code which creates a Microsoft BMP color image file that represents scalar data read from a text file.
The text file should contain the values of a quantity on an M by N grid, stored as an M by N array, which we will call "U".
The first two records of the text file should contain the values of M and N, respectively.
There should follow M records, each of length N, containing, in order, the rows of U.
grid_to_bmp input_file output_filewhere
The information on this web page is distributed under the MIT license.
grid_to_bmp is available in a C++ version.
bmp, a data directory which contains a few BMP files.
BMP_IO, a C++ library which reads or writes BMP graphics files.
BMP_TO_PPMA, a C++ program which converts BMP files to ASCII Portable Pixel Map (PPM) format.
BMP_TO_PPMB, a C++ program which converts BMP files to binary Portable Pixel Map (PPM) format.
HEATED_PLATE, a C program which solves the steady state heat equation in a 2D rectangular region, and writes the data to a file suitable for input to GRID_TO_BMP.
PPMA_TO_BMP, a C++ program which converts ASCII Portable Pixel Map (PPM) files to BMP format.
PPMB_TO_BMP, a C++ program which converts binary Portable Pixel Map (PPM) files to BMP format.