test |
|
bearmaster
一般會員 發表:36 回覆:45 積分:16 註冊:2004-05-27 發送簡訊給我 |
if (bCapConnect)
{
TCanvas *csBuf=new TCanvas;
HDC hDC=GetDC(hCapWnd);// (Form1->Panel2->Handle);//
csBuf->Handle=hDC;
Graphics::TBitmap *Source=new Graphics::TBitmap();
Source->Width=Form1->Panel2->Width;
Source->Height=Form1->Panel2->Height;
Source->Canvas->CopyRect(Rect(0, 0, Source->Width, Source->Height),
csBuf, Rect(0, 0, Form1->Panel2->Width, Form1->Panel2->Height));
Image1->Picture->Assign(Source);
TForm1:GetWindowY(Image1->Picture->Bitmap, &Yavg); ReleaseDC(0, hDC);
delete csBuf;
delete Source; // if (bCapConnect) capDriverDisconnect(hCapWnd);
}
|
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |