Table Of Contents

Write Image File (Write Image File (PNG)) (G Dataflow)

Last Modified: March 26, 2019

Writes an image to a file in PNG format.

connector_pane_image
datatype_icon

image in

Reference to the image structure to write as an image file.

datatype_icon

file path

Path name, including drive, directory, and file name, of the file to write.

datatype_icon

image quality

Amount of compression applied to the image.

image quality can range from 0 to 1000. The higher the value, the less compression the node applies.

Default: 750

datatype_icon

color palette

Color palette applied to an image.

color palette is an array of clusters constructed by the user or supplied by the Get Color Palette node. This palette is composed of 256 elements for each of the three color planes (red, green, and blue). A specific color is the result of applying a value between 0 and 255 to each of the three color planes. If the three planes have identical values, a gray level is obtained (0 specifies black and 255 specifies white). If the image type requires a color palette and it is not supplied, a grayscale color palette is generated and written.

datatype_icon

Red

Value of the red color plane.

datatype_icon

Green

Value of the green color plane.

datatype_icon

Blue

Value of the blue color plane.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

use bit depth

When saving a signed 16-bit image to a PNG file, the software must convert the data to an unsigned format and shift the data so that most significant bit is always the leftmost bit.

True Uses the bit depth information attached to the image to perform data conversions.
False Biases the image by adding a constant value to all the pixels in the image such that the lowest negative pixel value in the image maps to zero. The image data shifts based on the highest pixel value in the image.

Default: False

datatype_icon

image out

Reference to image in.

This node does not modify the image connected to the image in input.

datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics