Example Code

Resize Image Display Control to Size of Image

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

    Driver

  • NI Vision Acquisition Software

Code and Documents

Attachment

Overview

Programmatic adjustment of the size of a picture using IMAQ.

 

Description

This VI demonstrates how to adjust the size of the Image Display Control on the front panel programmatically so as to perfectly fit the image being displayed.

 

Requirements
1. LabVIEW 2012 (or compatible)
2. Supported IMAQ version

 

Steps to Implement or Execute Code
1. Select the file of a picture you would like to open
2. Select the Run button.
3. The change will be done immdialety.

 

Additional Information or References

Capture.PNG

Vivek Nath
National Instruments
Applications Engineer
Machine Vision

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