To download NI software, including the products shown below, visit ni.com/downloads.
Demonstrates how to write U16 grayscale image data to a PNG file, and how to read the image data back from the file.
This example demonstrates how to write 16 bit grayscale pixel values to PNG files with correct PNG header information, so the file can be read properly by LabVIEW or other programs.
LabVIEW 2016 (or compatible) and the Vision Development Module
1. Unzip the attached file.
2. Open the project.
3. Open the Write Grayscale PNG File.vi and follow the instructions on its panel.
4. Open the Read Grayscale PNG File.vi and follow the instructions on its panel.
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.