From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

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

 

Description

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.

 

Requirements

 Software

  • 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)

 Hardware

  • 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.

Comments
Torben Oestergaard-Andersen
Member
Member
on

Great !!

Thanks - this wa sjust what I needed 🙂