コード例 #1
0
        /// <summary>
        /// 抓图
        /// </summary>
        /// <param name="path"></param>
        public void CapImage(string path)
        {
            ShowVideo.BITMAPINFO bitmapinfo = new ShowVideo.BITMAPINFO();
            IntPtr hBmp = Marshal.StringToHGlobalAnsi(path);

            ShowVideo.SendMessage(this.lwndC, ShowVideo.WM_CAP_SAVEDIB, 0, hBmp.ToInt32());
        }
コード例 #2
0
 private bool capSetVideoFormat(IntPtr hCapWnd, ref ShowVideo.BITMAPINFO BmpFormat, int CapFormatSize)
 {
     return(ShowVideo.SendMessage(hCapWnd, ShowVideo.WM_CAP_SET_VIDEOFORMAT, CapFormatSize, ref BmpFormat));
 }