LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fading from one picture to another in LabVIEW

Hello - I have two jpg images. I would like to display them on a control such as a button or picture. I will need to be able to click on the control and respond to the mouse click - no problem with this bit.

 

My problem is that I would like to automatically fade from the first picture to the second picture and then back to the first picture... and so on every few seconds. I.e. I want the image shown on the control to automatically cycle between two pictures. Is there a vi within the picture control/graphics toolkit that will allow this?

 

 

0 Kudos
Message 1 of 3
(2,527 Views)

THe graphic effect can be realized using a picture ring with a set of images that give the desired effect when sequenced. Just cylce through the values at the rate you want.

 

If you need to change the images that are morphed, then it can be done by doing a wieighted average of each of the three color componenets for each pixel where the weighting shifts from one iamge to the next.

 

have fun,

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 2 of 3
(2,515 Views)

Thanks - the picture ring did the trick!

0 Kudos
Message 3 of 3
(2,505 Views)