TvideoCapture元件擷取ccd的問題 |
缺席
|
gso033
一般會員 發表:6 回覆:17 積分:4 註冊:2008-11-26 發送簡訊給我 |
如果我想要直接開啟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] |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |