private void FrameCallBack(IntPtr lwnd, IntPtr lpVHdr) { AviCapture.VIDEOHDR videoHeader = new AviCapture.VIDEOHDR(); byte[] VideoData; videoHeader = (AviCapture.VIDEOHDR)AviCapture.GetStructure(lpVHdr, videoHeader); VideoData = new byte[videoHeader.dwBytesUsed]; AviCapture.Copy(videoHeader.lpData, VideoData); if (this.RecievedFrame != null) { this.RecievedFrame(VideoData); } }
private void FrameCallBack(IntPtr lwnd, IntPtr lpVHdr) { AviCapture.VIDEOHDR videoHeader = new AviCapture.VIDEOHDR(); byte[] VideoData; videoHeader = (AviCapture.VIDEOHDR)AviCapture.GetStructure(lpVHdr, videoHeader); VideoData = new byte[videoHeader.dwBytesUsed]; AviCapture.Copy(videoHeader.lpData, VideoData); if (this.RecievedFrame != null) this.RecievedFrame(VideoData); }