Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

Are there event handlers for graphic objects drawn with the CWIMAQViewer toolbar?

Hi,

I use the CWIMAQViewer in my VB.Net  application to display images from a CCD camera.  I want to use the toolbar that comes with the viewer to draw graphics (e.g. a circler) over the image.  Is it possible to get the position and radius  of the circle as I drag it and change its size?  If not, what library should I use (I do have the NI Vision module) to achieve my goal?  Thank you so much for your help.

0 Kudos
Message 1 of 4
(4,757 Views)

Have you tried to use any of the overlays?  That's where I'd start if I wanted to draw a circle over a portion of the image.

0 Kudos
Message 2 of 4
(4,714 Views)

@BoKnows wrote:

Have you tried to use any of the overlays?  That's where I'd start if I wanted to draw a circle over a portion of the image.


I can draw a circle overlay over the image with no problem.  My question is: when I move the circle or change its size, is there a way to know its new location and size?

0 Kudos
Message 3 of 4
(4,702 Views)

Try creating the circle as a ROI.  Then take a look at ROI properties.  As an example, ROITop Property: CWIMAQ.ROITop

0 Kudos
Message 4 of 4
(4,684 Views)