public void DrawImageOnplayback(int a, int b, int c, int d) { x1 = a; y1 = b; x2 = c; y2 = d; DRAWFUN drawcross = new DRAWFUN(DrawFunCallBack); uint userInfo = new uint(); if (!NET_DVR_RigisterPlayBackDrawFun(PlaybackHandle, drawcross, userInfo)) { var iLastErr = NET_DVR_GetLastError(); throw new Exception("NET_DVR_RigisterDrawFun failed, error code= " + iLastErr); } }
public static extern bool PlayM4_RegisterDrawFun(int nPort, DRAWFUN DrawFun, int nUser);
public extern static int RegisterDrawFun(int port, DRAWFUN DrawFun, int user);
public static extern bool NET_DVR_RigisterPlayBackDrawFun(int lRealHandle, DRAWFUN fDrawFun, uint dwUser);
public HKImageDrawer(IntPtr hWnd) { mHWnd = hWnd; Transparence = 0.5f; mDrawFun = new DRAWFUN(DoDrawFun); }
public static extern bool PlayM4_RigisterDrawFun(int nPort, DRAWFUN DrawFun, int nUser);
public extern static bool MP4_ClientRigisterDrawFun(int StockHandle, DRAWFUN DrawFun, int nUser);