Example Code

View JPEGs as thumbnails and display full size when hovering

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 program displays small thumbnail-style previews of JPEGs on the front panel. When the user hovers over the thumbnails, the full-sized image is displayed on screen.

 

Description

This VI uses dynamically called events to determine when the full sized image should be displayed. It automatically adapts to the image so it always shows them full sized without the need for manual tweaking.

 

Requirements

  • LabVIEW 2012(or compatible)

 

Steps to Implement or Execute Code

  1. Run the VI.
  2. Load three JPEG files when prompted.
  3. Notice that when hovering the mouse over the small images, their full sized versions are displayed.

 

Additional Information or References

VI Snippet

 BD.png

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

 

 

Eden S
Applications Engineer
National Instruments UK & Ireland

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