I have a picture indicator in my VI and I might want to show pictures of all sizes. I wanted to figure out a way to change the size of the picture so that it would maximize in the window. After some experimenting, I came up with this.
To explain a little further. First, get the PNG file data and get its dimensions. Then, get the dimensions for the picture indicator. Divide the the picture width by the PNG width and divide the picture height by the PNG height. Pick the lower number and set that as the Zoom factor. Also, set the picture indicator to show the PNG data.
A few notes:
We just sent you an email. Please click the link in the email to confirm your subscription!
OKSubscriptions powered by Strikingly