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

VideoGrabber如何run時改版video size

缺席
chris681016
中階會員


發表:64
回覆:117
積分:96
註冊:2006-10-12

發送簡訊給我
#1 引用回覆 回覆 發表時間:2013-05-10 10:50:48 IP:211.75.xxx.xxx 訂閱
 範例檔如下
case rdgPreferredVideoSize.ItemIndex of
0: VideoGrabber.UseNearestVideoSize (0, 0, chkStretchPreferredVideoSize.Checked); // disables the nearest size feature, uses the device's VideoSize index in the VideoSizes list
1: VideoGrabber.UseNearestVideoSize ( 88, 60, chkStretchPreferredVideoSize.Checked);
2: VideoGrabber.UseNearestVideoSize ( 88, 72, chkStretchPreferredVideoSize.Checked);
3: VideoGrabber.UseNearestVideoSize (180, 120, chkStretchPreferredVideoSize.Checked);
...........
..................
end;

video size會跟這變

我的如下
case rdgPreferredVideoSize.ItemIndex of
0:
begin
VideoGrabber1.Width:=88;
VideoGrabber1.Height:=60;
VideoGrabber1.UseNearestVideoSize (88, 60, true);
end;
1:begin
VideoGrabber1.Width:=180;
VideoGrabber1.Height:=144;
VideoGrabber1.UseNearestVideoSize (180, 144, true);
end;
2:begin
VideoGrabber1.Width:=320;
VideoGrabber1.Height:=240;
VideoGrabber1.UseNearestVideoSize (320, 240, true);
end;
3:begin
VideoGrabber1.Width:=640;
VideoGrabber1.Height:=480;
VideoGrabber1.UseNearestVideoSize (640, 480, true);
end;
4:begin
VideoGrabber1.Width:=720;
VideoGrabber1.Height:=576;
VideoGrabber1.UseNearestVideoSize (720, 576, true);
end;
5:begin
VideoGrabber1.Width:=755;
VideoGrabber1.Height:=620;
VideoGrabber1.UseNearestVideoSize (755, 620, true);
end;
// you can add your own preferred formats
end;
VideoGrabber1.StartPreview;

為何我需要加
VideoGrabber1.Width:=
VideoGrabber1.Height:=
而範例的不需要~~~那邊沒設定到嗎?
系統時間:2018-01-20 16:58:12
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!