Showing results for 
Search instead for 
Did you mean: 

Creating a scaled scroll bar in live video.

Go to solution

With "Vision utilities" I'm trying to create a scaled scrollbar in Live video with Overlay I got it up to a point but I couldn't do exactly what I wanted. The problem is that the numbers are repeated but I haven't been able to create full synchronization. sample code here

0 Kudos
Message 1 of 8

You have an image, Grab, and add an overlay to it. Then, next iteration, you add an overlay to it, this is repeated. The overlay is never cleared. Those IMAQ references are funky... It's not by value.


So clear the overlay before adding to the overlay...

0 Kudos
Message 2 of 8

Also, check out the for loop 😉. That avoids copying the same thing 5 times.

0 Kudos
Message 3 of 8

 Thanks for your reply. I don't know exactly how to do this 🙂 If I knew I would already. Can you help a little more, you know there are hardly any examples on this topic.

0 Kudos
Message 4 of 8

actually i'm trying to create indicator like this but on live video.

0 Kudos
Message 5 of 8

You can use a control\indicator, and then get it's bitmap, and draw it in the image.


You can try to simply put the control over the IMAQ image. Or get the pixels of the image, and draw them in a picture control (you'll loose a lot of functionality).


Sorry, I don't have NI Vision installed at the moment.

0 Kudos
Message 6 of 8

thanks for your answer.But this answer not solution my problem.because I am not know how to solve this problem.

0 Kudos
Message 7 of 8
Accepted by topic author constructionworker

I found such a solution. And it has been useful for me now.

0 Kudos
Message 8 of 8