Write PNG File VI
- Updated2025-01-28
- 5 minute(s) read
Write PNG File VI
Writes a PNG file.
If you want to write a pixmap to a file, use the Flatten Pixmap VI to convert the data to an image data cluster before using this VI. If you want to write a picture to a file, use the Picture to Pixmap VI to convert the data to an image data cluster before using this VI.

Inputs/Outputs
![]() compression specifies the level of file compression you want for the PNG file. The quality of the graphic is not affected by the compression, but the graphic file size and speed of compression are affected by this value. Valid values range from –1 to 9 and balance file compression with speed. The following table lists example values for compression.
![]() path to PNG file specifies the path to and name of the PNG file to write. If you do not specify a path, LabVIEW displays a file dialog box so the user can navigate to the file. ![]() image data describes the image you want to draw or manipulate. If you wire 32-bit image data to this VI, the VI returns a 24-bit pixmap.
![]() error in describes error conditions that occur before this node runs. This input provides standard error in functionality. ![]() path specifies the path to the PNG file. ![]() error out contains error information. This output provides standard error out functionality. |