全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:1643
推到 Plurk!
推到 Facebook!

capGetStatus 的使用問題

尚未結案
arnotsay
一般會員


發表:23
回覆:79
積分:20
註冊:2003-02-03

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-02-14 17:26:19 IP:218.162.xxx.xxx 未訂閱
capGetStatus(hwnd,s,wSize)中 s 和 wSize 要如何設定??
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-02-14 17:30:44 IP:61.218.xxx.xxx 未訂閱
CapStatus* s;    s= new CapStatus; capGetStatus(hwnd,s,sizeof(CapStatus));    
------
︿︿
arnotsay
一般會員


發表:23
回覆:79
積分:20
註冊:2003-02-03

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-02-14 17:56:17 IP:218.162.xxx.xxx 未訂閱
引言: CapStatus* s; s= new CapStatus; capGetStatus(hwnd,s,sizeof(CapStatus));
請問有沒有source code 是應用這個API 的...? 因為我剛接觸API..不太會用..謝謝.
cmf
尊榮會員


發表:84
回覆:918
積分:1032
註冊:2002-06-26

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-02-15 09:23:59 IP:61.218.xxx.xxx 未訂閱
struct CapStatus  {    UINT   uiImageWidth                ;      // Width of the image    UINT   uiImageHeight               ;      // Height of the image    BOOL   fLiveWindow                 ;      // Now Previewing video?    BOOL   fOverlayWindow              ;      // Now Overlaying video?    BOOL   fScale                      ;      // Scale image to client?    TPOINT ptScroll                    ;    // Scroll position    BOOL   fUsingDefaultPalette        ;      // Using default driver palette?    BOOL   fAudioHardware              ;      // Audio hardware present?    BOOL   fCapFileExists              ;      // Does capture file exist?    DWORD  dwCurrentVideoFrame         ;     // # of video frames cap'td    DWORD  dwCurrentVideoFramesDropped ;     // # of video frames dropped    DWORD  dwCurrentWaveSamples        ;     // # of wave samples cap'td    DWORD    dwCurrentTimeElapsedMS    ;     // Elapsed capture duration    HPALETTE hPalCurrent               ;  // Current palette in use    BOOL     fCapturingNow             ;      // Capture in progress?    DWORD    dwReturn                  ;     // Error value after any operation    UINT     wNumVideoAllocated        ;      // Actual number of video buffers    UINT     wNumAudioAllocated        ;      // Actual number of audio buffers  );    CapStatus* s; s= new CapStatus; capGetStatus(hwnd,s,sizeof(CapStatus));        
------
︿︿
arnotsay
一般會員


發表:23
回覆:79
積分:20
註冊:2003-02-03

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-02-17 18:57:51 IP:218.162.xxx.xxx 未訂閱
引言: struct CapStatus { UINT uiImageWidth ; // Width of the image UINT uiImageHeight ; // Height of the image BOOL fLiveWindow ; // Now Previewing video? BOOL fOverlayWindow ; // Now Overlaying video? BOOL fScale ; // Scale image to client? TPOINT ptScroll ; // Scroll position BOOL fUsingDefaultPalette ; // Using default driver palette? BOOL fAudioHardware ; // Audio hardware present? BOOL fCapFileExists ; // Does capture file exist? DWORD dwCurrentVideoFrame ; // # of video frames cap'td DWORD dwCurrentVideoFramesDropped ; // # of video frames dropped DWORD dwCurrentWaveSamples ; // # of wave samples cap'td DWORD dwCurrentTimeElapsedMS ; // Elapsed capture duration HPALETTE hPalCurrent ; // Current palette in use BOOL fCapturingNow ; // Capture in progress? DWORD dwReturn ; // Error value after any operation UINT wNumVideoAllocated ; // Actual number of video buffers UINT wNumAudioAllocated ; // Actual number of audio buffers ); CapStatus* s; s= new CapStatus; capGetStatus(hwnd,s,sizeof(CapStatus));
謝謝你...我摸懂了...
系統時間:2024-03-28 23:24:28
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!