Overview This is a simple demonstration using Base LabVIEW functions and property nodes to manipulate different picture images. With this you can resize an image based on the Image container and resize the container based on the size of the picture.
Description Using the DrawAreaSize and ZoomFactor picture property nodes to adjust the size of the image to fit the picture container drawn on the Front Panel. We are also able to use the DrawAreaSize property to adjust the picture container to match the original size of the picture. This example also uses the picture (PNG, BMP, and JPEG) Read VIs to allow you to select a picture file save to disk. If you do not have an image or what to just run the VI, there is a default picture selected when nothing is selected in the Path to Image Control.
LabVIEW 2012 (or compatible)
Steps to Implement or Execute Code
Open the VI
Select the location of the image file using the Path to Image control (If you do not have an image then you can just leave the control blank and it will automatically just use a sample picture file)
Run the VI
Additional Information or References VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**