hi~
i have a question for how can i get the informations of ROI axis value from "NationalInstruments.CWIMAQControls.AxCWIMAQViewer" control.
i can acquire a image from an image graber by using "axCWIMAQ1.Start()" method.
and also can set the ROI by using "AxCWIMAQViewer" Control.
but i can't find how to get the location value of the selected ROI. (actually i can see the location value by checking "Show Tool Info" check box which is located in "AxCWIMAQViewer's properties", but i want to use that information in C# code.)
i need your help~~
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
private void button1_Click(object sender, EventArgs e)
{
axCWIMAQViewer1.Image.Type = NationalInstruments.CWIMAQControls.CWIMAQImageTypes.cwimaqImageTypeU8;
axCWIMAQ1.IMAQError += new NationalInstruments.CWIMAQControls._AxDCWIMAQEvents_IMAQErrorEventHandler(VisionError);
axCWIMAQ1.Interface = "img0";
axCWIMAQ1.Channel = 0;
axCWIMAQ1.AcquiredImageEnabled = true;
axCWIMAQViewer1.Attach(axCWIMAQ1.Images.Item(1));
axCWIMAQ1.AcquisitionType = NationalInstruments.CWIMAQControls.CWIMAQAcquisitionTypes.cwimaqAcquisitionContinuous;
axCWIMAQ1.Start();
}
private void RegionsChanged(object sender, _DCWIMAQViewerEvents_RegionsChangedEvent e)
{
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//how can i get the location of changed or selected region????????????
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
}