Importing Background Images for Panes

Complete the following steps to import a background image for a pane:

  1. Right-click the scroll bar of the pane and select Properties from the shortcut menu to display the Pane Properties dialog box.
  2. Navigate to the Background tab and select an image from the Background list. Image Preview displays a preview of the image, and the image appears in the pane. You also can complete the following steps to select an image that does not appear in the Background list.
    1. Click the Browse button to display a file dialog box.
    2. Navigate to the image and click the OK button. The image appears in the Background list. LabVIEW supports BMP, JPEG, and PNG graphic formats for background images. If you attempt to load an image of an unsupported graphic format, LabVIEW returns an error.
      Note  If you select an image that does not appear in the Background list, LabVIEW does not add that image to the Background list permanently. To add an image to the list permanently, you must save the image in the labview\resource\backgrounds directory.
    3. Use the Position pull-down menu to set the positioning of the image to stretch, center, or tile.
    4. Click the OK button to close the Pane Properties dialog box and apply the background.

When you save a VI that contains a pane with a background image, LabVIEW saves the pane background image with the VI.

You also can use the Background Image property to set a pane background image programmatically. You can use the Background Mode property to set the positioning of a pane background image programmatically.