解决方案 »

  1.   

    Marshal.Copy(imagedata, arr, 0, size);
      

  2.   

    http://www.cnblogs.com/Lisen/archive/2009/09/28/1576009.html
      

  3.   

    不过你都在用emgu中,可以直接用 Image 类啊, 不用操作  cvXXX 函数
      

  4.   

    @huwei001982  thanks great!  copy   seems overflow..?
      

  5.   

    @hefeng_aspnet  谢谢!!
    编译通过并且没死,但是最终效果不对,我来查查哪里的问题
    还是CSDN最强大
      

  6.   

    我也在搞emgu...请教一下楼主知不知道为什么cvqueryframe之后出来的指针永远是0,然后怎么样才能用这个指针去把图片存下来?谢谢
      

  7.   

    @SYGKT : 0 stands for IntPtr.Zero, which I guess u did not initial that before...  
    using CvInvoke.cvSaveImage(filename, image, IntPtr.Zero) to save an image, where filename is a string and image is a IntPtr type, point to the image data.