Saves an image of the VI icon to a file.

You also can use the VI Icon:Get As Image Data method to return the VI icon as a cluster of image data.

Parameters

Name Data type Required Description
Image File cpath.png Yes

Absolute path where you want to save the image.

Image Format cenum.png No

Format in which to save the image.

0PNG (default)
1JPEG
2GIF
3BMP
Image Depth ci32.png No

Specifies the color depth of the image, which is the number of bits to use to describe the color of each pixel in the image. Valid values include 1, 4, 8 (default), and 24 bits per pixel.

Remarks

The following table lists the characteristics of this method.

Short Name VI Icon.Save to File
Data type No return value
Available in Run-Time Engine No
Available in Real-Time Operating System No
Settable when the VI is running Yes
Loads the front panel into memory No
Need to authenticate before use No
Loads the block diagram into memory No
Remote access allowed Yes
Must wait until user interface is idle No
Available with control VIs Yes
Available with global VIs Yes
Available with strict type definitions No
Available with polymorphic VIs Yes