Example Code

Create Partial Transparent Image Overlay Without VDM

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.


  • LabVIEW

Code and Documents



This example demonstrates how to create a partial transparent overlay over an image without the Vision Development Module (VDM).



When trying to create transparent portions of images using the Picture Functions in LabVIEW, your only option is to the Create Mask function. However, it does not allow for partial transparency.

The work around to achieve partial transparency is to average the pixels you would like to be transparent with the pixel values of the original image. See the attached VI for an example of performing this feature.




  • LabVIEW Base Development System 2012 (or compatible)
  • If running in a Real-Time context, you will need the LabVIEW Real-Time Module 2012 (or compatible)


  • No hardware is necessary to use this example VI


Steps to Implement or Execute Code

  1. Download and open the attached ZIP-file
  2. Open and run the [Main] ...VI


Additional Information or References

Create Partial Transparent Image Overlay - Front Panel.png
Create Partial Transparent Image Overlay - Block Diagram.png


**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Alex Person
NI-RIO Product Support Engineer
National Instruments

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Torben Oestergaard-Andersen

Great !!

Thanks - this wa sjust what I needed 🙂