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

請問CCD擷取影像時畫線的問題

答題得分者是:RaynorPao
Ricky_567
一般會員


發表:34
回覆:38
積分:19
註冊:2006-11-09

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-01-17 15:18:27 IP:61.225.xxx.xxx 未訂閱
請教各位先進 我想在CCD擷取影像的同時要畫十字中心基準線, 使用畫線函式(MoveTo,LineTo),但好像被CCD更新 有何方式可達成呢?
RaynorPao
版主


發表:139
回覆:3622
積分:7025
註冊:2002-08-12

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-01-17 16:32:31 IP:203.73.xxx.xxx 未訂閱
引言: 請教各位先進 我想在CCD擷取影像的同時要畫十字中心基準線, 使用畫線函式(MoveTo,LineTo),但好像被CCD更新 有何方式可達成呢?
Ricky_567 你好: 請問你原來的做法是將擷取到的影像畫到 TImage 裡面嗎? 如果是的話~~可以改成動態 > --
------
-- 若您已經得到滿意的答覆,請適時結案!! --
-- 欲知前世因,今生受者是;欲知來世果,今生做者是 --
-- 一切有為法,如夢幻泡影,如露亦如電,應作如是觀 --
Ricky_567
一般會員


發表:34
回覆:38
積分:19
註冊:2006-11-09

發送簡訊給我
#3 引用回覆 回覆 發表時間:2003-01-17 17:14:56 IP:61.225.xxx.xxx 未訂閱
小弟以前用Image動態畫線時畫面會閃爍所以直接用Form畫。 RaynorPao 兄提到: (把擷取到的影像畫到TBitmap的Canvas中...用CopyRect貼到TImage的Canvas) 這樣畫面效率會不會不好,不過小弟會試試看的!! 感謝版主的回答^_^
taishyang
站務副站長


發表:377
回覆:5490
積分:4563
註冊:2002-10-08

發送簡訊給我
#4 引用回覆 回覆 發表時間:2003-01-17 17:20:06 IP:140.135.xxx.xxx 未訂閱
Ricky_567您好:   根據我的經驗,必須要將CCD擷取的畫面放到TImage裡   再把十字畫在TImage上...   畫在Form上會被下一個畫面給覆蓋掉,不曉得有沒有讓畫的線Always On Top   的方式就是了..
Ricky_567
一般會員


發表:34
回覆:38
積分:19
註冊:2006-11-09

發送簡訊給我
#5 引用回覆 回覆 發表時間:2003-01-17 17:30:50 IP:61.225.xxx.xxx 未訂閱
引言: Ricky_567您好: 根據我的經驗,必須要將CCD擷取的畫面放到TImage裡 再把十字畫在TImage上... 畫在Form上會被下一個畫面給覆蓋掉,不曉得有沒有讓畫的線Always On Top 的方式就是了.. < face="Verdana, Arial, Helvetica"> 請教 taishyang 兄 程式如下 hCapWnd = capCreateCaptureWindow("My Capture Window", WS_CHILD | WS_VISIBLE, 0, 0, VideoForm->Width, VideoForm->Height,VideoForm->Handle, 0); capDriverConnect (hCapWnd, 0); capPreview(hCapWnd,true); capPreviewScale(hCapWnd,true); capPreviewRate(hCapWnd, 1000/30); capOverlay(hCapWnd, true); . . . 不知如何將擷取的畫面放到TImage裡,可否 taishyang 兄幫忙一下^_^"
cmf
尊榮會員


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

發送簡訊給我
#6 引用回覆 回覆 發表時間:2003-01-17 17:33:33 IP:61.218.xxx.xxx 未訂閱
引言: 請教各位先進 我想在CCD擷取影像的同時要畫十字中心基準線, 使用畫線函式(MoveTo,LineTo),但好像被CCD更新 有何方式可達成呢?
請參考這篇 關於 如何貼圖到 video 及 將 video 畫面 剪下 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/multimed/drawdib_2pgz.asp Platform SDK: Windows Multimedia DrawDib Functions The following functions are used with DrawDib. DrawDibBegin DrawDibChangePalette DrawDibClose DrawDibDraw DrawDibEnd DrawDibGetBuffer DrawDibGetPalette DrawDibOpen DrawDibProfileDisplay DrawDibRealize DrawDibSetPalette DrawDibStart DrawDibStop DrawDibTime StretchDIB 發表人 - cmf 於 2003/01/17 17:37:45
------
︿︿
taishyang
站務副站長


發表:377
回覆:5490
積分:4563
註冊:2002-10-08

發送簡訊給我
#7 引用回覆 回覆 發表時間:2003-01-17 21:58:39 IP:140.135.xxx.xxx 未訂閱
Ricky_567 你好: 下面的code可以參考一下 #include < Clipbrd.hpp > Image1->Picture->LoadFromClipboardFormat(CF_BITMAP,Clipboard()- >GetAsHandle(CF_BITMAP),0);
Ricky_567
一般會員


發表:34
回覆:38
積分:19
註冊:2006-11-09

發送簡訊給我
#8 引用回覆 回覆 發表時間:2003-01-18 15:12:37 IP:61.225.xxx.xxx 未訂閱
感謝以上各位大大的回答 小弟愚昧的再請問另一個問題!!!! 如何設定判斷Video Input訊號 是為SVideo or Tuner or Composite 是要使用那一個函式呢?? 煩請各位大大不吝解答 謝謝!!!
cmf
尊榮會員


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

發送簡訊給我
#9 引用回覆 回覆 發表時間:2003-01-18 15:27:30 IP:61.218.xxx.xxx 未訂閱
引言: 感謝以上各位大大的回答 小弟愚昧的再請問另一個問題!!!! 如何設定判斷Video Input訊號 是為SVideo or Tuner or Composite 是要使用那一個函式呢?? 煩請各位大大不吝解答 謝謝!!!
capDlgVideoSource The capDlgVideoSource macro displays a dialog box in which the user can control the video source. The Video Source dialog box might contain controls that select input sources; alter the hue, contrast, brightness of the image; and modify the video quality before digitizing the images into the frame buffer. You can use this macro or explicitly send the WM_CAP_DLG_VIDEOSOURCE message. BOOL capDlgVideoSource( hwnd ); Parameters hwnd Handle to a capture window. Return Values Returns TRUE if successful or FALSE otherwise. Remarks The Video Source dialog box is unique for each capture driver. Some capture drivers might not support a Video Source dialog box. Applications can determine if the capture driver supports this message by checking the fHasDlgVideoSource member of the CAPDRIVERCAPS structure. Requirements Windows NT/2000/XP: Included in Windows NT 3.1 and later. Windows 95/98/Me: Included in Windows 95 and later. Header: Declared in Vfw.h. See Also Video Capture Overview, Video Capture Macros, CAPDRIVERCAPS, WM_CAP_DLG_VIDEOSOURCE
------
︿︿
系統時間:2024-04-20 0:04:35
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!