01-09-2008 03:41 PM - edited 01-09-2008 03:43 PM
01-10-2008 04:48 PM
01-12-2008 03:18 PM
Hi Evan,
Thanks for your reply. The camera that i am uising is a non-standard video source.
Just as a little background:
I can acquire images in the NI measurment and automation software and save the images with the proper pixel size. In the NI software i set the following
Acquisition Window:
Top: 1
Left: 12
Width: 1000
Height: 1000
The problem is when i use VB.NET to acquire an image and save it. Below is the code that i am using
AxCWIMAQ3.Images.RemoveAll()
AxCWIMAQ3.Images.Add(10)
'Configure Continuous Acquire Region of Interest
AxCWIMAQ3.ROILeft = 12
AxCWIMAQ3.ROITop = 1
AxCWIMAQ3.ROIWidth = 1000
AxCWIMAQ3.ROIHeight = 1000
AxCWIMAQ3.AcquisitionType = NationalInstruments.CWIMAQControls.CWIMAQAcquisitionTypes.cwimaqAcquisitionOneShot
AxCWIMAQ3.AcquireImage()
'AxCWIMAQViewer1.Attach(AxCWIMAQ1.Images.Item(1))
AxCWIMAQ1.SaveImageToDisk("c:\temp\test.bmp", AxCWIMAQ3.Images.Item(1))
When i look at the saved image it is not 1000 x 1000 but it is
1000 (H) X 992 (W)
Therefore i tried to play around with the top and left parameters but have had no luck and sometimes get the error i originally posted.
Is there something that I am not setting properly to save 1000x1000 images?
Thanks for your help
Jomile
01-14-2008 06:30 PM