To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI creates bitmap files. It takes care of all of the required portions of the BMP file format by creating file header, file info header and the data array step by step. Low level binary file functions are used to write BMP file content.
Description
For demonstration purposes an example PNG file will be loaded first and converted to 24 bit pixmap. The resulting 24 bit pixmap array can easily be converted to a 3D 8 bit unsigned integer array which is required when writing BMP image data. This conversion but also the BMP file header creation are demonstrated in this example. The example can easily be modified to write your own image data to a BMP file. There are separate SubVIs for File header, File info header and data array creation.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Could you please add some pictures of maybe even a Snippet?