Example #1
0
 [DllImport("MVAPI.dll", CharSet = CharSet.Auto)]  // 根据FrameNo返回帧号地址和帧属性
 public static extern void MV_GetSequenceFrameAddress(int hDevice, uint FrameNo, ref MV_IMAGEINFO pProperty);
Example #2
0
 [DllImport("MVAPI.dll", CharSet = CharSet.Auto)]  // 保存文件
 public static extern int MV_ReadPixel(ref MV_IMAGEINFO pinfo, IntPtr pImageData, ref Point pt, byte[] pVal);
Example #3
0
 public static extern bool MV_SaveFile([MarshalAs(UnmanagedType.LPStr)] String FileName, int FileType, IntPtr pImageData, ref MV_IMAGEINFO pinfo, uint ImageTotal, bool IsUpDown, bool ColororNot, int Quality);
Example #4
0
 [DllImport("MVAPI.dll", CharSet = CharSet.Auto)]            // 捕获一帧
 public static extern IntPtr MV_CaptureSingle(int hDevice, bool IsProcess, int Buffer, int Bufflen, ref MV_IMAGEINFO pinfo);