Developers working with graphics frequently use applications that can read and transform image files. Whether they are transforming bitmaps into other file formats, or just reading the images in order to create new images from the pixel data, developers in this field regularly work with routines that access the base pixel data. Software methods written in C, C++ and Java are often used to read and write these files. The white paper attached below demonstrates the reading and writing of bitmap files using Microsoft Excel using Visual Basic. A benefit of this approach is the Visual Basic interpreter inside the Macro editor is used, making the method extremely powerful and simple to code and use — no formal compilers or knowledge of C, C++ or Java is required to implement this set of Visual Basic methods.
The simple Visual Basic method to read and write bitmaps runs in an Excel spreadsheet, which reads a .bmp file. This method opens, reads, and extracts the pixels of a 24-bit color bitmap, in accordance with a user-specified color. This method then writes the extracted pixels to a new bitmap containing only the selected color specified by the user. This straightforward method requires no compiler.
The original Microsoft Visual Basic bitmap reader/writer method was written in 2002: Read and Write Bitmaps Using Excel.