Import Pictures into a Picture Control

Updated Nov 22, 2021

Reported In


  • LabVIEW

Issue Details

Can I import pictures into a Picture Control using LabVIEW functions? I want to copy an image into my control


You cannot copy and paste images into a Picture Control. However, you can read an image into a pixmap, which is a 2D array of data with each data point mapped to a color. To do this:

  1. Use the Read PNG File, Read JPEG File, or Read BMP File VIs from the Functions»Programming»Graphics & Sound»Graphics Formats palette.
  2. Then use the Draw Flattened Pixmap VI to display the image in a Picture Control. These VIs are located on the Functions»Programming»Graphics & Sound»Picture Functions palette.

Below is an example of how you could read a JPEG image and display it in Picture Control.

Note: The Picture Control is different from the Picture Ring. You are able to drag and drop an image into the Picture Ring Control.

Additional Information

The above solution utilizes functions that are available within LabVIEW, no toolkits or modules required. However if you are looking to solutions utilizing Vision software ...