線上訂房服務-台灣趴趴狗聯合訂房中心
發文 回覆 瀏覽次數:1121
推到 Plurk!
推到 Facebook!

TvideoCapture元件擷取ccd的問題

缺席
gso033
一般會員


發表:6
回覆:17
積分:4
註冊:2008-11-26

發送簡訊給我
#1 引用回覆 回覆 發表時間:2009-03-19 18:15:54 IP:140.117.xxx.xxx 訂閱
如果我想要直接開啟2台目前是在增config1=new TGraphConfig(),
不知道是否有比較好的方式??


[code cpp]
config=new TGraphConfig();
TStringList* s;
s = GetVideoDevicesList(true);
try {

CBVSources->Items->Assign(s);
//int number=s->Count;
if(s->Count==0)
{ShowMessage("no camera");}
Edit1->Text=(CBVSources->Items->Strings[1] );

}
__finally
{
delete s;
}
config->WantPreview = true;
config->WantCapture = true;
config->WantBitmaps = true;
config->PreallocFileSize = 1;
config->PixelFormat= pf24bit;
config->VCapSource =Edit1->Text;
Form1->cap->RestoreGraph(config);

[/code]
系統時間:2024-04-26 14:35:20
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!