PDA

View Full Version : Getback the camer buffer values using Activex



sethupathy
October 29, 2007, 10:58:45
Hi,
i am using the imaging source camera which mode is (DFK 31FO3)
now i am getting the camera buffer values through CListener::frameReady is there any possibility to getback the buffer values to array using Activex Control.


regards
sethu

Sascha Schmidt
October 31, 2007, 15:33:32
Hallo sethu,

In order to access the image data using the ActiveX, you have to use the "ImageAvailable" -event:


private void icImagingControl1_ImageAvailable(object sender, Private Sub ICImagingControl1_ImageAvailable(ByVal BufferIndex As Long)
Set DisplayBuffer = ICImagingControl1.ImageBuffers.Item(BufferIndex)
DisplayBuffer.Lock
Dim Data As Variant
Data = DisplayBuffer.GetImageData
For iy = 0 To DisplayBuffer.Lines - 1
For ix = 0 To DisplayBuffer.PixelPerLine - 1
Dim color As Integer
color = Data(ix, iy)
Next
Next
End Sub

Transferring the imagedata to an array works also with an memcpy.