作者ToyLoli (玩具蘿莉≠脫衣蘿莉)
看板C_and_CPP
標題[問題] 抓取 1394 攝影機
時間Tue May 12 15:40:45 2009
我手上有一台 AVT 1394 攝影機,他有給 SDK
裡面有一段取得單一影像的範例是這樣的
extern ID_TYPE nCamId; // id of an already opened camera
extern UINT32_TYPE nHorizontalResolution; // the currently configured image
// size
extern UINT32_TYPE nVerticalResolution; //
ATL::CImage Image;
Image.Create( nHorizontalResolution , -1 * nVerticalResolution , 24 );
UNI_RETURN_TYPE hr = UCC_GrabBitmapImage( nCamId ,
(UINT8_TYPE*) Image.GetBits() ,
INFINITE );
黃色的部份我 google 了一下,好像是 VC 內建的函數?
由於學長寫的程式是用 BCB,如果我要用 BCB 寫出相同的作用,應該要使用哪些元件
或是函式呢?可否請各位前輩提點一下?
--
法輪弓
遠程 弓
8300 - 9500傷害 速度 1.50
(每秒傷害5933.3)
裝備: 你在中國解放軍的聲望將永久仇恨。
擊中時可能: 迫使敵人召喚一名武警為他作戰。
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.126.145.206
推 VictorTom:TImage, TBitmap?? Create format的用法不太一樣就是. 05/12 15:49
→ ToyLoli:謝謝,我去研究看看 05/12 15:52