Measurement Studio for VB6

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I display an overlay (drawline) on a live image?

I am using Measurement Studio with VB6 and and am calling the CWIMAQViewer.Image.Overlays.DrawLine to display a vertical line on the image. But when I perform a CWIMAQ.Start the line is overwritten. How do I display an overlay (drawline) on a live image?
0 Kudos
Message 1 of 2
(6,006 Views)
Hello,
You would need to acquire the image, then draw the line on the image (overlay) and then save the overlay information with the image.
The following link will take you to a set of Overlay Examples where the fourth example program continuously acquires frames from a camera. Pressing the "Extract Image" button transfers the image to another buffer, displays it in a viewer, and superimposes it with a rectangular overlay. Saving the image to another buffer prevents a "Locked Out" error message.
You can replace the rectangular overlay with a drawline overlay.

Good luck with your application and have a great day!
Reg
ards,
Koninika
Applications Engineering
National Instruments
http://www.ni.com/support
0 Kudos
Message 2 of 2
(6,005 Views)